diff options
Diffstat (limited to 'herbstluftwm/bin/herbstluftwm-remove-gap')
-rwxr-xr-x | herbstluftwm/bin/herbstluftwm-remove-gap | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/herbstluftwm/bin/herbstluftwm-remove-gap b/herbstluftwm/bin/herbstluftwm-remove-gap new file mode 100755 index 0000000..b30b3eb --- /dev/null +++ b/herbstluftwm/bin/herbstluftwm-remove-gap @@ -0,0 +1,12 @@ +#!/bin/sh +filename="/tmp/herbstluftwm-gap" +while read -r line +do + gap=$line + if [ "$gap" -ge 7 ] + then + gap=$((gap-7)) + herbstclient set window_gap $gap + echo $gap > $filename + fi +done < "$filename" |