16 lines
412 B
Plaintext
16 lines
412 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
M=$(bspc query -M --names)
|
||
|
NUM=$(echo "$M" | awk 'END{print NR}')
|
||
|
|
||
|
if [ "$NUM" = 1 ]; then
|
||
|
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
||
|
bspc rule -a Firefox:Navigator state=tiled desktop='^2'
|
||
|
elif [ "$NUM" = 2 ]; then
|
||
|
pri=$(echo "$M" | awk NR==1)
|
||
|
sec=$(echo "$M" | awk NR==2)
|
||
|
bspc monitor "$pri" -d 1 2 3 4 5
|
||
|
bspc monitor "$sec" -d 6 7 8 9 10
|
||
|
bspc rule -a Firefox:Navigator state=tiled desktop='^6'
|
||
|
fi
|