aboutsummaryrefslogtreecommitdiff
path: root/herbstluftwm/bin/herbstluftwm-remove-gap
diff options
context:
space:
mode:
authorxero <x@xero.nu>2015-11-01 19:06:07 -0500
committerxero <x@xero.nu>2015-11-01 19:06:07 -0500
commitebef0b0c20a825a8d60a6da4b68d99f785612a71 (patch)
treef7e495a400ca639b330a7046dcc396c5f2c8868e /herbstluftwm/bin/herbstluftwm-remove-gap
parentd4b12ab2d624129b0b8e4a41d41e2537d5e87988 (diff)
downloaddotfiles_ascii-ebef0b0c20a825a8d60a6da4b68d99f785612a71.tar.xz
dotfiles_ascii-ebef0b0c20a825a8d60a6da4b68d99f785612a71.zip
update herb utils to use ~/bin
Diffstat (limited to 'herbstluftwm/bin/herbstluftwm-remove-gap')
-rwxr-xr-xherbstluftwm/bin/herbstluftwm-remove-gap12
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"