avoid 0% brightness
This commit is contained in:
parent
c3a2592ce7
commit
00c1309ed1
|
@ -29,8 +29,13 @@ case $1 in
|
||||||
send_notification
|
send_notification
|
||||||
;;
|
;;
|
||||||
down)
|
down)
|
||||||
# decrease the backlight by 5%
|
if [[ $(get_brightness) -lt 5 ]]; then
|
||||||
brightnessctl set 5%-
|
# avoid 0% brightness
|
||||||
|
brightnessctl set 1%
|
||||||
|
else
|
||||||
|
# decrease the backlight by 5%
|
||||||
|
brightnessctl set 5%-
|
||||||
|
fi
|
||||||
send_notification
|
send_notification
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue