diff options
author | xero <x@xero.nu> | 2015-03-07 20:48:41 -0500 |
---|---|---|
committer | xero <x@xero.nu> | 2015-03-07 20:48:41 -0500 |
commit | 627c9813c7c95ea2e3d45de0e44bab4f17e78f51 (patch) | |
tree | ee8b71f7dcd7f213bb0b09af8039f0c321fe9bd3 /herbstluftwm/code/sys/herbstluftwm-add-gap | |
parent | 5fe35b14052942884351b404296cc683b5982a91 (diff) | |
download | dotfiles_ascii-627c9813c7c95ea2e3d45de0e44bab4f17e78f51.tar.xz dotfiles_ascii-627c9813c7c95ea2e3d45de0e44bab4f17e78f51.zip |
fix herbstluftwm gap scripts for window size hints and make more unixy
Diffstat (limited to '')
-rwxr-xr-x | herbstluftwm/code/sys/herbstluftwm-add-gap | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/herbstluftwm/code/sys/herbstluftwm-add-gap b/herbstluftwm/code/sys/herbstluftwm-add-gap index 08b5a03..cc5492c 100755 --- a/herbstluftwm/code/sys/herbstluftwm-add-gap +++ b/herbstluftwm/code/sys/herbstluftwm-add-gap @@ -1,9 +1,12 @@ -#!/bin/bash +#!/bin/sh filename="/tmp/herbstluftwm-gap" while read -r line do gap=$line - gap=$((gap+10)) - herbstclient set window_gap $gap - echo $gap > $filename + if [ "$gap" -le 90 ] + then + gap=$((gap+7)) + herbstclient set window_gap $gap + echo $gap > $filename + fi done < "$filename" |