mirror of
https://github.com/arkorty/Scripts.git
synced 2026-03-18 01:07:10 +00:00
Update backlight
This commit is contained in:
10
backlight
10
backlight
@@ -17,10 +17,16 @@ NOTIPROG=dunstify
|
||||
case $1 in
|
||||
-i)
|
||||
# Set the brightness on (if it was muted)
|
||||
$PROG -inc 10
|
||||
if [ $($PROG -getf | awk '{print substr($1, 1, length($1)-2)}') -ge 10 ]; then
|
||||
$PROG -inc 10
|
||||
else
|
||||
$PROG -set 10
|
||||
fi
|
||||
;;
|
||||
-d)
|
||||
if [ $($PROG -getf | awk '{print substr($1, 1, length($1)-2)}') -le 20 ]; then
|
||||
if [ $($PROG -getf | awk '{print substr($1, 1, length($1)-2)}') -le 10 ]; then
|
||||
$PROG -set 1
|
||||
elif [ $($PROG -getf | awk '{print substr($1, 1, length($1)-2)}') -le 20 ]; then
|
||||
$PROG -set 10
|
||||
else
|
||||
$PROG -dec 10
|
||||
|
||||
Reference in New Issue
Block a user