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:
Willow Barraco
2023-06-28 20:14:11 +02:00
committed by Anjandev Momi
parent 8f16045a20
commit 8b10c99a09

View File

@@ -25,9 +25,9 @@ xorgdpms() {
swaydpms() { swaydpms() {
STATE=off STATE=off
if swaymsg -t get_outputs \ if ! swaymsg -t get_outputs \
| jq ".[] | .dpms" \ | jq ".[] | .dpms" \
| grep -q "false"; then | grep -q "true"; then
STATE=on STATE=on
fi fi