blob: 75ba3585340d6c02ec7f145051679858e344e17a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
# Taken from:
# https://github.com/baskerville/bspwm/issues/679
MON_ID=$(bspc query -M -m "$1")
MON_POS="$2"
[ $(bspc query -M -m "$MON_POS") != "$MON_ID" ] && bspc monitor "$MON_POS" -s "$MON_ID"
bspc subscribe monitor_swap | while read msg ; do
[ $(bspc query -M -m "$MON_POS") != "$MON_ID" ] && bspc monitor "$MON_POS" -s "$MON_ID"
done
|