From dfc9f960f07793250e05362df28c9f727feb0076 Mon Sep 17 00:00:00 2001 From: katherine Date: Tue, 15 Apr 2025 16:45:39 +1000 Subject: update dunst config --- .config/herbstluftwm/mpc-status.sh | 6 +++--- .config/herbstluftwm/pvol.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to '.config/herbstluftwm') diff --git a/.config/herbstluftwm/mpc-status.sh b/.config/herbstluftwm/mpc-status.sh index f1c8130..221b0a9 100755 --- a/.config/herbstluftwm/mpc-status.sh +++ b/.config/herbstluftwm/mpc-status.sh @@ -15,12 +15,12 @@ esac mpc status >/dev/null 2>&1 if [[ $? -ne 0 ]]; then - dunstify -r 109112100 "mpd disconnected" + dunstify -h string:x-dunst-stack-tag:mpd "mpd disconnected" exit fi if [[ -z $(mpc status | grep -E '\[(playing|paused)\]') ]]; then - dunstify -r 109112100 "mpd stopped" + dunstify -h string:x-dunst-stack-tag:mpd "mpd stopped" exit fi @@ -30,4 +30,4 @@ message="$(mpc current -f '##%track% %title% (%date%)\n%artist% - %album%') $(mpc status | tail -n -2 | sed -re 's/volume.*repeat/\nrepeat/' -e 's/( ){3,4}/\n/g' -e '/volume: /d')" -dunstify -t 4000 -r 109112100 --icon="$HOME/music/$dir/cover-small.png" $message +dunstify -t 4000 -h string:x-dunst-stack-tag:mpd --icon="$HOME/music/$dir/cover-small.png" $message diff --git a/.config/herbstluftwm/pvol.sh b/.config/herbstluftwm/pvol.sh index 8d5984e..4d08ff1 100755 --- a/.config/herbstluftwm/pvol.sh +++ b/.config/herbstluftwm/pvol.sh @@ -18,4 +18,4 @@ esac pactl get-sink-volume @DEFAULT_SINK@ | sed -e N -e 's/\n//g' -e 's/.* \([0-9]\{1,2\}%\).*/\1/' } | read body -dunstify -r 118111108 $body +dunstify -h string:x-dunst-stack-tag:pvol $body -- cgit v1.2.3