#!/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 "dunst"
else
echo "dunst"
fi
else
echo "dunst"
fi