#!/bin/sh # battery status file is sent in as an argument from sb-battery while inotifywait -e modify "$1/status"; do pkill -RTMIN+3 dwmblocks || break done