dotfiles/.i3blocks/dunst
2020-07-29 10:26:35 +02:00

22 lines
414 B
Bash
Executable file

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