aboutsummaryrefslogtreecommitdiff
path: root/herbstluftwm/code/sys/herbstluftwm-remove-gap
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xherbstluftwm/code/sys/herbstluftwm-remove-gap13
1 files changed, 7 insertions, 6 deletions
diff --git a/herbstluftwm/code/sys/herbstluftwm-remove-gap b/herbstluftwm/code/sys/herbstluftwm-remove-gap
index 65c397a..b30b3eb 100755
--- a/herbstluftwm/code/sys/herbstluftwm-remove-gap
+++ b/herbstluftwm/code/sys/herbstluftwm-remove-gap
@@ -1,11 +1,12 @@
-#!/bin/bash
+#!/bin/sh
filename="/tmp/herbstluftwm-gap"
while read -r line
do
gap=$line
- if [ "$gap" -ge 0 ]; then
- gap=$((gap-10))
- herbstclient set window_gap $gap
- fi
- echo $gap > $filename
+ if [ "$gap" -ge 7 ]
+ then
+ gap=$((gap-7))
+ herbstclient set window_gap $gap
+ echo $gap > $filename
+ fi
done < "$filename"