aboutsummaryrefslogtreecommitdiff
path: root/herbstluftwm/code/sys/herbstluftwm-add-gap
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xherbstluftwm/code/sys/herbstluftwm-add-gap9
1 files changed, 9 insertions, 0 deletions
diff --git a/herbstluftwm/code/sys/herbstluftwm-add-gap b/herbstluftwm/code/sys/herbstluftwm-add-gap
new file mode 100755
index 0000000..08b5a03
--- /dev/null
+++ b/herbstluftwm/code/sys/herbstluftwm-add-gap
@@ -0,0 +1,9 @@
+#!/bin/bash
+filename="/tmp/herbstluftwm-gap"
+while read -r line
+do
+ gap=$line
+ gap=$((gap+10))
+ herbstclient set window_gap $gap
+ echo $gap > $filename
+done < "$filename"