From ebef0b0c20a825a8d60a6da4b68d99f785612a71 Mon Sep 17 00:00:00 2001 From: xero Date: Sun, 1 Nov 2015 19:06:07 -0500 Subject: update herb utils to use ~/bin --- herbstluftwm/bin/herbstluftwm-add-gap | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 herbstluftwm/bin/herbstluftwm-add-gap (limited to 'herbstluftwm/bin/herbstluftwm-add-gap') 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" -- cgit v1.2.1