#!/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
