dotfiles/.scripts/togglenotify.sh
Gregor Feierabend 8ac3a2d12f config update
2021-06-29 11:18:37 +02:00

13 lines
209 B
Bash
Executable file

#!/bin/bash
if test -e /tmp/dunstpause; then
dunstctl set-paused toggle;
else
dunstctl set-paused false
touch /tmp/dunstpause;
fi
if `dunstctl is-paused`; then
echo do not disturb
else
echo available
fi