#!/bin/bash # only beep on headphones (amixer get Speaker | grep "off" &>/dev/null) && (paplay "$HOME/.scripts/beep.ogg" &) # ( # sleep 0.5 # dunstctl action # ) &