aboutsummaryrefslogtreecommitdiff
path: root/herbstluftwm/code/sys/herbstluftwm-remove-gap
diff options
context:
space:
mode:
authorxero <x@xero.nu>2014-07-14 13:23:05 -0400
committerxero <x@xero.nu>2014-07-14 13:23:05 -0400
commit56560fd597f94dfe6fe5fa79648398ab29d05775 (patch)
tree7e77d23be98b2df8ef847f49ee645085356305be /herbstluftwm/code/sys/herbstluftwm-remove-gap
parent1434c859bcf94a0bbee88e72c8a01849d0356293 (diff)
downloaddotfiles_ascii-56560fd597f94dfe6fe5fa79648398ab29d05775.tar.xz
dotfiles_ascii-56560fd597f94dfe6fe5fa79648398ab29d05775.zip
updated repo to manage dotfiles via gnu stow, the symlink farm manager. happy birthday commit! :birthday: :sparkles:
Diffstat (limited to 'herbstluftwm/code/sys/herbstluftwm-remove-gap')
-rwxr-xr-xherbstluftwm/code/sys/herbstluftwm-remove-gap11
1 files changed, 11 insertions, 0 deletions
diff --git a/herbstluftwm/code/sys/herbstluftwm-remove-gap b/herbstluftwm/code/sys/herbstluftwm-remove-gap
new file mode 100755
index 0000000..65c397a
--- /dev/null
+++ b/herbstluftwm/code/sys/herbstluftwm-remove-gap
@@ -0,0 +1,11 @@
+#!/bin/bash
+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
+done < "$filename"