togglescreen : arguments de brightnessctl en entier

This commit is contained in:
Ahurac 2024-04-06 23:39:17 +02:00
parent bf0a0ea914
commit ae5103f1ce

View file

@ -2,7 +2,7 @@
set -e
screen_is_on() {
[ "$(brightnessctl g)" -ne 0 ]
[ "$(brightnessctl get)" -ne 0 ]
}
turn_on_screen() {
@ -11,7 +11,7 @@ turn_on_screen() {
turn_off_screen() {
brightnessctl -s
brightnessctl s 0
brightnessctl set 0
}
if screen_is_on; then