aboutsummaryrefslogtreecommitdiff
path: root/vol.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vol.sh')
-rwxr-xr-xvol.sh9
1 files changed, 8 insertions, 1 deletions
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"