[thinkpad-dock] Check whether to really activate the monitor on wakeup

This commit is contained in:
Sebastian Schulze 2022-08-11 16:34:00 +02:00
parent a860271a24
commit 3c0da0fcb5
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 3 additions and 1 deletions

View File

@ -40,5 +40,7 @@ elif swaymsg -t get_inputs | grep "ZSA Technology Labs Planck EZ Glow"; then
# Whereever else
else
swaymsg output eDP-1 enable
if ! swaymsg -t get_outputs | jq -e '.[] | select(.name == "eDP-1" and .active == true)'
swaymsg output eDP-1 enable
fi
fi;