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:
TuDatTr
2020-01-30 15:50:41 +01:00
parent 978482a94c
commit 59de189dda
4 changed files with 20 additions and 3 deletions

15
config/.scripts/screen.sh Executable file
View 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