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