diff options
-rwxr-xr-x | bl | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -8,15 +8,15 @@ case "$CMD" in "light") case "$1" in "-i") - light -A "$2" + light -A "${2:-1%}" ;; "-d") - light -U "$2" + light -U "${2:-1%}" ;; "-s") light -S "$2" ;; - "-g") + "-g"|"") light -G ;; "*") @@ -28,15 +28,15 @@ case "$CMD" in "xbacklight") case "$1" in "-i") - xbacklight -inc "$2" + xbacklight -inc "${2:-1}" ;; "-d") - xbacklight -dec "$2" + xbacklight -dec "${2:-1}" ;; "-s") xbacklight -set "$2" ;; - "-g") + "-g"|"") xbacklight -get ;; "*") |