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