Correction du script dunst

This commit is contained in:
Breizh 2020-07-29 10:26:35 +02:00
parent 798917e698
commit b9a8dea761

View file

@ -2,6 +2,8 @@
active=$(systemctl --user show -p ActiveState --value dunst.service) active=$(systemctl --user show -p ActiveState --value dunst.service)
echo -n "dunst "
if [[ "$active" == "active" ]] if [[ "$active" == "active" ]]
then then
if [[ -n "$button" ]] if [[ -n "$button" ]]
@ -9,8 +11,6 @@ then
dunstctl set-paused toggle dunstctl set-paused toggle
fi fi
echo -n "dunst "
if [[ "$(dunstctl is-paused)" == "true" ]] if [[ "$(dunstctl is-paused)" == "true" ]]
then then
echo "<span foreground=\"#FFCC66\">█</span>" echo "<span foreground=\"#FFCC66\">█</span>"