From b0cedf115516103c9e02f1c4a506565da66aeb08 Mon Sep 17 00:00:00 2001 From: zachir Date: Thu, 20 Apr 2023 14:57:11 -0500 Subject: set default inc/dec to 1% and default cmd to get --- bl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bl b/bl index de3b133..898faee 100755 --- a/bl +++ b/bl @@ -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 ;; "*") -- cgit v1.2.3