#!/bin/bash
filename="/tmp/herbstluftwm-gap"
while read -r line
do
	gap=$line
	gap=$((gap+10))
    herbstclient set window_gap $gap
    echo $gap > $filename
done < "$filename"