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