diff options
Diffstat (limited to 'vol.sh')
-rwxr-xr-x | vol.sh | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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" |