sxmo_wm.sh: fix dpms switch when outputs are partially turned off
In a situation of one output was already turned off manualy by the user, the script was not turning off other outputs. Reversing this check produce a more consistent behavior. Signed-off-by: Willow Barraco <contact@willowbarraco.fr> Signed-off-by: Anjandev Momi <anjan@momi.ca>
This commit is contained in:

committed by
Anjandev Momi

parent
8f16045a20
commit
8b10c99a09
@@ -25,9 +25,9 @@ xorgdpms() {
|
||||
|
||||
swaydpms() {
|
||||
STATE=off
|
||||
if swaymsg -t get_outputs \
|
||||
if ! swaymsg -t get_outputs \
|
||||
| jq ".[] | .dpms" \
|
||||
| grep -q "false"; then
|
||||
| grep -q "true"; then
|
||||
STATE=on
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user