1
0
Fork 0

avoid 0% brightness

This commit is contained in:
Massaki Archambault 2018-10-31 14:04:38 -04:00
parent c3a2592ce7
commit 00c1309ed1
1 changed files with 7 additions and 2 deletions

View File

@ -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