diff --git a/Makefile b/Makefile index 38dc2e2..a584e7e 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,7 @@ sh: cp -f sh/tmenu_run $(DESTDIR)$(PREFIX)/bin cp -f sh/ss $(DESTDIR)$(PREFIX)/bin cp -f sh/net $(DESTDIR)$(PREFIX)/bin + cp -f sh/bspwm-toggle-gaps $(DESTDIR)$(PREFIX)/bin mkc: c/scream c/timer c/boid c/anaconda c/colors diff --git a/sh/bspwm-toggle-gaps b/sh/bspwm-toggle-gaps new file mode 100755 index 0000000..776fc5a --- /dev/null +++ b/sh/bspwm-toggle-gaps @@ -0,0 +1,11 @@ +#!/bin/sh + +gaps="$(bspc config top_padding)" + +if [ "$gaps" -eq 20 ]; then + bspc config window_gap 0 + bspc config top_padding 18 +else + bspc config window_gap 3 + bspc config top_padding 20 +fi