aboutsummaryrefslogtreecommitdiff
path: root/herbstluftwm/code/sys/herbstluftwm-add-gap
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xherbstluftwm/code/sys/herbstluftwm-add-gap11
1 files changed, 7 insertions, 4 deletions
diff --git a/herbstluftwm/code/sys/herbstluftwm-add-gap b/herbstluftwm/code/sys/herbstluftwm-add-gap
index 08b5a03..cc5492c 100755
--- a/herbstluftwm/code/sys/herbstluftwm-add-gap
+++ b/herbstluftwm/code/sys/herbstluftwm-add-gap
@@ -1,9 +1,12 @@
-#!/bin/bash
+#!/bin/sh
filename="/tmp/herbstluftwm-gap"
while read -r line
do
gap=$line
- gap=$((gap+10))
- herbstclient set window_gap $gap
- echo $gap > $filename
+ if [ "$gap" -le 90 ]
+ then
+ gap=$((gap+7))
+ herbstclient set window_gap $gap
+ echo $gap > $filename
+ fi
done < "$filename"