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