2020-02-24 14:15:57 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-02-24 14:26:41 +01:00
|
|
|
active=$(systemctl --user show -p ActiveState --value dunst.service)
|
|
|
|
|
2020-07-29 10:23:51 +02:00
|
|
|
if [[ "$active" == "active" ]]
|
2020-02-24 14:15:57 +01:00
|
|
|
then
|
2020-07-29 10:23:51 +02:00
|
|
|
if [[ -n "$button" ]]
|
2020-02-24 14:15:57 +01:00
|
|
|
then
|
2020-07-29 10:23:51 +02:00
|
|
|
dunstctl set-paused toggle
|
2020-02-24 14:15:57 +01:00
|
|
|
fi
|
|
|
|
|
2020-07-29 10:23:51 +02:00
|
|
|
if [[ "$(dunstctl is-paused)" == "true" ]]
|
2020-02-24 14:26:41 +01:00
|
|
|
then
|
2020-11-06 01:59:52 +01:00
|
|
|
echo "<span foreground=\"#FFCC66\">dunst</span>"
|
2020-02-24 14:26:41 +01:00
|
|
|
else
|
2020-11-06 01:59:52 +01:00
|
|
|
echo "<span foreground=\"#99CC99\">dunst</span>"
|
2020-02-24 14:26:41 +01:00
|
|
|
fi
|
2020-02-24 14:15:57 +01:00
|
|
|
else
|
2020-11-06 01:59:52 +01:00
|
|
|
echo "<span foreground=\"#F2777A\">dunst</span>"
|
2020-02-24 14:15:57 +01:00
|
|
|
fi
|