Files
dotfiles/config/.scripts/screen.sh
TuDatTr 59de189dda Added small screen brightness script instead of having code inside .config/i3/config
Also added small func to generate a rndpassword
2020-01-30 15:50:41 +01:00

16 lines
375 B
Bash
Executable File

#!/bin/sh
case $1 in
"up"*)
xbacklight -inc 10 &
currentBrightness=$(xbacklight | cut -d\. -f1);
dunstify -r 1 'brightness up'\ \($currentBrightness%\);
;;
"down"*)
xbacklight -dec 10 &
currentBrightness=$(xbacklight | cut -d\. -f1);
dunstify -r 1 'brightness down'\ \($currentBrightness%\);
;;
esac