aboutsummaryrefslogtreecommitdiff
path: root/herbstluftwm/code/sys/herbstluftwm-remove-gap
blob: 65c397ac56df2987218248b374b3860d4c4faac0 (plain)
1
2
3
4
5
6
7
8
9
10
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"