Fixed backlight keys
This commit is contained in:
parent
d12966230b
commit
43249024c8
@ -21,15 +21,19 @@ case $1 in
|
||||
up)
|
||||
# Increase backlight
|
||||
xbacklight -inc 10% > /dev/null
|
||||
backlight=$(xbacklight -get | cut -f1 -d"." | cut -f1 -d"0")
|
||||
#backlight=$(xbacklight -get | cut -f1 -d"." | cut -f1 -d"0")
|
||||
backlight=$(xbacklight -get | rev| cut -c9- | rev)
|
||||
xbacklight -set "${backlight}0"
|
||||
send_notification
|
||||
;;
|
||||
down)
|
||||
# Decrease backlight
|
||||
xbacklight -dec 10% > /dev/null
|
||||
#backlight=$(xbacklight -get | cut -f1 -d"." | cut -f1 -d"0")
|
||||
#xbacklight -set "${backlight}0"
|
||||
#backlight2dig=$(xbacklight -get | cut -f1 -d"." | cut -f1 -d"0")
|
||||
backlight=$(xbacklight -get | rev| cut -c9- | rev)
|
||||
((backlight++))
|
||||
#backlight=${backlight2dig%?}
|
||||
xbacklight -set "${backlight}0"
|
||||
send_notification
|
||||
;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user