dgy
/
hexagons
Archived
1
0
Fork 0
This repository has been archived on 2021-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
hexagons/.local/bin/bspmonis

15 lines
422 B
Bash
Executable File

#!/bin/sh
NUM=$(bspc query -M --names | 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=$(bspc query -M --names | awk NR==1)
sec=$(bspc query -M --names | 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