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