]> git.armaanb.net Git - bin.git/blob - brightness-set
Autostart: Switch to a picture wallpaper and picom
[bin.git] / brightness-set
1 #!/usr/bin/env sh
2 # Show a notification and change screen brightness
3
4 brightnessctl set ${1}
5 dunstify -h string:x-canonical-private-synchronous:brightness \
6   "Brightness" "$(brightnessctl | grep % | tail -c +22)" \
7   -h int:value:"$(brightnessctl | grep % | cut -d '(' -f 2 | head -c +3)" \
8   -t 1000