togglescreen : arguments de brightnessctl
en entier
This commit is contained in:
parent
bf0a0ea914
commit
ae5103f1ce
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue