feat: adjust script for multiple monitors
This commit is contained in:
parent
23a399b9d9
commit
e5d6c76adc
12
bin/swws.py
12
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)
|
||||
|
Loading…
Reference in New Issue
Block a user