From dfdc8e86b27197ea874929537a8129cc552ff599 Mon Sep 17 00:00:00 2001 From: katherine Date: Sun, 11 Dec 2022 20:56:27 -0700 Subject: update to latest dunst remove forked version and make necessary relevant adjustments --- .config/herbstluftwm/pvol.sh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to '.config/herbstluftwm/pvol.sh') diff --git a/.config/herbstluftwm/pvol.sh b/.config/herbstluftwm/pvol.sh index 820d890..8d5984e 100755 --- a/.config/herbstluftwm/pvol.sh +++ b/.config/herbstluftwm/pvol.sh @@ -2,15 +2,20 @@ case "$1" in down) - pavolume voldown --quiet 2 + pactl set-sink-volume @DEFAULT_SINK@ -2% ;; up) - pavolume volup --quiet 2 + pactl set-sink-volume @DEFAULT_SINK@ +2% ;; mute) - pavolume mutetoggle --quiet - ;; - *) - pavolume show + pactl set-sink-mute @DEFAULT_SINK@ toggle ;; esac + +{ + [[ $(pactl get-sink-mute @DEFAULT_SINK@) =~ "yes" ]] && printf "Muted: " || printf "Volume: " + + 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 -- cgit v1.2.3