enforce 291 B

1234567891011
  1. #! /bin/sh
  2. MON_ID=$(bspc query -M -m "$1")
  3. MON_POS="$2"
  4. [ $(bspc query -M -m "$MON_POS") != "$MON_ID" ] && bspc monitor "$MON_POS" -s "$MON_ID"
  5. bspc subscribe monitor_swap | while read msg ; do
  6. [ $(bspc query -M -m "$MON_POS") != "$MON_ID" ] && bspc monitor "$MON_POS" -s "$MON_ID"
  7. done