aboutsummaryrefslogtreecommitdiff
path: root/vol.sh
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2024-02-13 11:54:59 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2024-02-13 11:54:59 +0100
commit25808c12e41337e6c6b2dd7dc4c7db6b5bebfe6a (patch)
tree5cb9321af043e9be61a95f144401d3e671b9ea0e /vol.sh
parent52f5c1d727bf07de425dae724c2da54b21cc0374 (diff)
downloadscripts-25808c12e41337e6c6b2dd7dc4c7db6b5bebfe6a.tar.gz
scripts-25808c12e41337e6c6b2dd7dc4c7db6b5bebfe6a.zip
Updated cmusShow.sh and vol.sh to give more info.
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"