#!/usr/bin/env dash # shellcheck source=/dev/null SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH help() { cat < $BACKLIGHT/brightness" } for arg in "$@"; do case "$arg" in "--help" | "-h") help exit 0 ;; "--version" | "-v") version exit 0 ;; esac done case "$1" in "up") shift 1 value="5" [ -n "$1" ] && value="$1" brightness "+$value" ;; "down") shift 1 value="-5" [ -n "$1" ] && value="$1" brightness "-$value" ;; *) die "The command '$1' does not exist! See '--help' for a list" ;; esac # vim: ft=sh