diff options
author | katherine <ageha@airen-no-jikken.icu> | 2025-04-15 16:45:39 +1000 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2025-04-15 16:45:39 +1000 |
commit | dfc9f960f07793250e05362df28c9f727feb0076 (patch) | |
tree | c6f16b7b044614e0d1110dbff2cd8c519ec7252b /.config | |
parent | 05cbc7ce170332080b0e764eb02cf11adcea4beb (diff) | |
download | dotfiles-dfc9f960f07793250e05362df28c9f727feb0076.tar.gz |
update dunst config
Diffstat (limited to '.config')
-rwxr-xr-x | .config/herbstluftwm/mpc-status.sh | 6 | ||||
-rwxr-xr-x | .config/herbstluftwm/pvol.sh | 2 | ||||
-rw-r--r-- | .config/init/gen/dunstrc.sh | 2 |
3 files changed, 5 insertions, 5 deletions
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 diff --git a/.config/init/gen/dunstrc.sh b/.config/init/gen/dunstrc.sh index 99a7993..d436954 100644 --- a/.config/init/gen/dunstrc.sh +++ b/.config/init/gen/dunstrc.sh @@ -5,7 +5,7 @@ echo "\ width = (0, 1000) # height = 300 origin = top-right - offset = 4x$(($bheight + 4)) + offset = (4, $(($bheight + 4))) scale = 0 notification_limit = 0 progress_bar = true |