#!/bin/bash # Update the volume module in the statusbar whenever # headphones and monitors are added or removed. while :; do grep -q -m1 '^jack/headphone\|^jack/lineout' <(acpi_listen) || exit 1 pkill -RTMIN+10 "${STATUSBAR:-dwmblocks}" done