Added small screen brightness script instead of having code inside .config/i3/config
Also added small func to generate a rndpassword
This commit is contained in:
15
config/.scripts/screen.sh
Executable file
15
config/.scripts/screen.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user