You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
#!/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
|
|
|