2020-10-06 00:07:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-10-12 22:44:04 +00:00
|
|
|
NUM=$(bspc query -M --names | awk 'END {print NR}')
|
2020-10-06 00:07:59 +00:00
|
|
|
|
|
|
|
if [ "$NUM" = 1 ]; then
|
|
|
|
bspc monitor -d 1 2 3 4 5 6 7 8 9 10
|
2021-02-09 16:45:49 +00:00
|
|
|
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
|
2020-10-06 00:07:59 +00:00
|
|
|
bspc rule -a Firefox:Navigator state=tiled desktop='^2'
|
2021-02-09 16:45:49 +00:00
|
|
|
hsetroot -solid "#080808"
|
2020-10-06 00:07:59 +00:00
|
|
|
elif [ "$NUM" = 2 ]; then
|
2020-10-12 22:44:04 +00:00
|
|
|
pri=$(bspc query -M --names | awk NR==1)
|
|
|
|
sec=$(bspc query -M --names | awk NR==2)
|
2020-10-06 00:07:59 +00:00
|
|
|
bspc monitor "$pri" -d 1 2 3 4 5
|
|
|
|
bspc monitor "$sec" -d 6 7 8 9 10
|
2021-01-14 14:50:20 +00:00
|
|
|
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
|
2021-02-09 16:45:49 +00:00
|
|
|
bspc config single_monocle false
|
|
|
|
bspc config borderless_monocle false
|
|
|
|
bspc config remove_unplugged_monitors false
|
|
|
|
bspc config remove_disabled_monitors false
|
2020-10-06 00:07:59 +00:00
|
|
|
bspc rule -a Firefox:Navigator state=tiled desktop='^6'
|
2021-01-14 14:50:20 +00:00
|
|
|
randbg &
|
2020-10-06 00:07:59 +00:00
|
|
|
fi
|
2021-01-14 14:50:20 +00:00
|
|
|
|
|
|
|
bspc config left_padding 0
|
|
|
|
bspc config right_padding 0
|