bspwm
bspwm copied to clipboard
Ignore single_monocle for specific desktop
Is there any way to make only one desktop wouldn't use single_monocle?
Not explicitly since single_monocle
is a global setting, but you can write a simple script to enable single_monocle
for all desktops but one (e.g. the first desktop):
#!/bin/bash
bspc subscribe desktop_focus | while read -r _ _ desktop_id; do
if (( desktop_id == $(bspc query -D -d '^1') ))
then bspc config single_monocle false
else bspc config single_monocle true
fi
done
Note: the setting will be reconfigured globally when you focus/unfocus the first desktop, so, if you have more than one monitor, the setting will change for both monitors which might be annoying. Also, the single window in the first desktop will be resized everytime you focus it which is not ideal.
EDIT:
another solution can be to change your desktop focusing keybinds:
super + {2-9,0}
bspc config single_monocle true; \
bspc desktop '^{2-9,10}' -f
super + 1
bspc config single_monocle false; \
bspc desktop '^1' -f
this should make the problem of the single window in the first desktop resizing everytime you focus that desktop less noticeable.