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