dotfiles/.local/bin/statusbar/sb-dunststatus

13 lines
296 B
Bash
Executable File

#!/bin/sh
APPOINTMENTS_SIGNAL=8
if [ "$( dunstctl is-paused )" = "true" ]; then
printf '🔕\n'
if [ ! -f /tmp/nodunst ]; then
touch /tmp/nodunst
fi
else
printf '\n'
rm -f /tmp/nodunst
fi
pkill -RTMIN+$APPOINTMENTS_SIGNAL dwmblocks #update appointments after file has been created/deleted