2020-09-21 22:06:00 +02:00
|
|
|
#!/bin/sh
|
2020-12-19 11:48:55 +01:00
|
|
|
APPOINTMENTS_SIGNAL=8
|
2020-09-21 22:06:00 +02:00
|
|
|
if [ "$( dunstctl is-paused )" = "true" ]; then
|
2020-12-19 11:48:55 +01:00
|
|
|
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
|
2020-12-19 11:48:55 +01:00
|
|
|
pkill -RTMIN+$APPOINTMENTS_SIGNAL dwmblocks #update appointments after file has been created/deleted
|