Add scripts

This commit is contained in:
olari
2018-07-31 21:30:28 +03:00
parent 031a4b54c1
commit da0ac3cd97
8 changed files with 78 additions and 13 deletions

22
scripts/backlight.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
backlight_float=$(xbacklight -get)
current_backlight=${backlight_float%%.*}
case $1 in
"raise")
(( current_backlight += 5 ))
[[ $current_backlight -gt 100 ]] && current_backlight=100
xbacklight -set $current_backlight
notify-send $current_backlight
;;
"lower")
(( current_backlight -= 5 ))
[[ $current_backlight -lt 5 ]] && current_backlight=1
xbacklight -set $current_backlight
notify-send $current_backlight
;;
esac