feat: adjust script for multiple monitors

This commit is contained in:
surtur 2020-06-11 23:01:59 +02:00
parent 23a399b9d9
commit e5d6c76adc
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -54,3 +54,15 @@ for i in range(len(msg)):
else: else:
mon_type = "HDMI-A-1" mon_type = "HDMI-A-1"
wssw(mon_type) 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)