added binfiles from chrysostomus/bspwm-scripts, fixed eaten space

This commit is contained in:
2021-09-23 11:28:28 +02:00
parent 8950439dc2
commit 89420117a1
36 changed files with 848 additions and 1 deletions

21
bin/autogap Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/zsh
if [ "$(pgrep -cx autogap)" -gt 1 ] ; then
killall autogap && exit 0
else
bspc config top_padding 0
bspc config left_padding 0
bspc config right_padding 0
bspc config bottom_padding 0
bspc config -m $(bspc query -M | awk NR==1) top_padding $PANEL_HEIGHT
bspc config gapless_monocle true
bspc subscribe | while read line; do
W=$(bspc query -N -n .local.\!floating | wc -l)
G=$(echo "51 - ($W - 1) * 10" | bc)
[ "$G" -lt 1 ] && G=1
bspc config --desktop focused window_gap $G
done
fi