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