From 25808c12e41337e6c6b2dd7dc4c7db6b5bebfe6a Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Tue, 13 Feb 2024 11:54:59 +0100 Subject: Updated cmusShow.sh and vol.sh to give more info. --- vol.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'vol.sh') diff --git a/vol.sh b/vol.sh index 180cfe6..6b8081f 100755 --- a/vol.sh +++ b/vol.sh @@ -8,5 +8,12 @@ else pactl set-sink-volume "$sink" "$1%" fi -dunstify -r "$(dunstifyIDs.sh "vol")" -t 500 "$(~/scripts/i3blocks/i3vol.sh)" +text="$(~/scripts/i3blocks/i3vol.sh)" +vol="$(echo "$text" | cut -d' ' -f2-)" + +dunstify -r "$(dunstifyIDs.sh "vol")" \ + -t 500 \ + -h "int:value:${vol}" \ + "$text" + [ -n "$STATUS_BAR" ] && pkill -SIGRTMIN+10 "$STATUS_BAR" -- cgit v1.2.1