diff --git a/bin/togglescreen b/bin/togglescreen index 55fc206..494e086 100755 --- a/bin/togglescreen +++ b/bin/togglescreen @@ -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