dotfiles/.local/bin/statusbar/dunststatus

13 lines
296 B
Plaintext
Raw Normal View History

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