From e5d6c76adc2546245beada876e29218125ba7227 Mon Sep 17 00:00:00 2001 From: surtur Date: Thu, 11 Jun 2020 23:01:59 +0200 Subject: [PATCH] feat: adjust script for multiple monitors --- bin/swws.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bin/swws.py b/bin/swws.py index 9fe0a55..57f7c65 100755 --- a/bin/swws.py +++ b/bin/swws.py @@ -54,3 +54,15 @@ for i in range(len(msg)): else: mon_type = "HDMI-A-1" wssw(mon_type) + if msg[i]["output"] == "DP-2": + if not a: + subprocess.run(["swaymsg", "workspace", ws10]) + else: + mon_type = "DP-2" + wssw(mon_type) + if msg[i]["output"] == "DP-3": + if not a: + subprocess.run(["swaymsg", "workspace", ws10]) + else: + mon_type = "DP-3" + wssw(mon_type)