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

34 lines
1.1 KiB
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 config top_padding 0
bspc config bottom_padding 0
bspc config single_monocle true
bspc config borderless_monocle true
bspc config remove_disabled_monitors true
bspc config remove_unplugged_monitors true
bspc rule -a Firefox:Navigator state=tiled desktop='^2'
hsetroot -solid "#080808"
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 config -m "$pri" top_padding 0
bspc config -m "$pri" bottom_padding 0
bspc config -m "$sec" top_padding 3
bspc config -m "$sec" bottom_padding 23
bspc config single_monocle false
bspc config borderless_monocle false
bspc config remove_unplugged_monitors false
bspc config remove_disabled_monitors false
bspc rule -a Firefox:Navigator state=tiled desktop='^6'
randbg &
fi
bspc config left_padding 0
bspc config right_padding 0