dotfiles/.i3blocks/dunst
2020-11-06 01:59:52 +01:00

20 lines
402 B
Bash
Executable file

#!/bin/bash
active=$(systemctl --user show -p ActiveState --value dunst.service)
if [[ "$active" == "active" ]]
then
if [[ -n "$button" ]]
then
dunstctl set-paused toggle
fi
if [[ "$(dunstctl is-paused)" == "true" ]]
then
echo "<span foreground=\"#FFCC66\">dunst</span>"
else
echo "<span foreground=\"#99CC99\">dunst</span>"
fi
else
echo "<span foreground=\"#F2777A\">dunst</span>"
fi