aboutsummaryrefslogtreecommitdiff
path: root/local/bin/backlight-ctl
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-05-11 11:26:22 +0200
committerCharles Cabergs <me@cacharle.xyz>2021-05-11 11:26:22 +0200
commit1588dfb87e78f7c0cdca97ce0841f25a25dea388 (patch)
treed6d0e56616b537a3c76c4ea6bb583b82ad03e1bd /local/bin/backlight-ctl
parente8f5fccd336bbbfb84e390eabad13e400695254d (diff)
parent94fd4f1bc3dba4e53ca57c769999dc72f7932936 (diff)
downloaddotfiles-1588dfb87e78f7c0cdca97ce0841f25a25dea388.tar.gz
dotfiles-1588dfb87e78f7c0cdca97ce0841f25a25dea388.tar.bz2
dotfiles-1588dfb87e78f7c0cdca97ce0841f25a25dea388.zip
Merge branch 'master' of cacharle.xyz:/srv/git/dotfiles
Diffstat (limited to 'local/bin/backlight-ctl')
-rwxr-xr-xlocal/bin/backlight-ctl6
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"