1 2 3 4 5 6 7 8 9
#!/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"