diff options
Diffstat (limited to 'local/bin/backlight-ctl')
| -rwxr-xr-x | local/bin/backlight-ctl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/local/bin/backlight-ctl b/local/bin/backlight-ctl index 2963d83..1e7f94c 100755 --- a/local/bin/backlight-ctl +++ b/local/bin/backlight-ctl @@ -15,9 +15,11 @@ else fi case "$1" in - "up") "$cmd" "$up_opt" 5 ;; + "up") "$cmd" "$up_opt" 5 ;; "down") "$cmd" "$down_opt" 5 ;; *) exit 1 ;; esac -notify-send "backlight $("$cmd" | cut -d '.' -f 1)" +value="$("$cmd" | cut -d '.' -f 1)" + +notify-send --hint=int:transient:1 --hint=int:value:"$value" "Backlight" |
