From 3c0da0fcb5dd41a45cdb3cb63ccd20a76690d9cc Mon Sep 17 00:00:00 2001 From: Sebastian Schulze Date: Thu, 11 Aug 2022 16:34:00 +0200 Subject: [PATCH] [thinkpad-dock] Check whether to really activate the monitor on wakeup --- bin/executable_thinkpad-dock | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/executable_thinkpad-dock b/bin/executable_thinkpad-dock index 869e66f..dc6d584 100644 --- a/bin/executable_thinkpad-dock +++ b/bin/executable_thinkpad-dock @@ -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;