]> git.armaanb.net Git - bin.git/blobdiff - brightness-set
Autostart: Switch to a picture wallpaper and picom
[bin.git] / brightness-set
index da07a7a2d1ad6bce14328d195226182d016b7287..61244e95e4c2c2c9680731c5df3f7651610d5c5e 100755 (executable)
@@ -2,4 +2,7 @@
 # Show a notification and change screen brightness
 
 brightnessctl set ${1}
-notify-send "Brightness" "$(brightnessctl | grep % | tail -c +22)" -t 1000
+dunstify -h string:x-canonical-private-synchronous:brightness \
+  "Brightness" "$(brightnessctl | grep % | tail -c +22)" \
+  -h int:value:"$(brightnessctl | grep % | cut -d '(' -f 2 | head -c +3)" \
+  -t 1000