From 94fd4f1bc3dba4e53ca57c769999dc72f7932936 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 8 May 2021 17:58:10 +0200 Subject: Added transient notification for backlight-ctl --- local/bin/backlight-ctl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'local/bin') 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" -- cgit