commit 2f62025633bfa4173fa7c8912b566b9b11664204
parent fc0cabedaff289f7a94e430ca07fd37f713e7fff
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Fri, 3 Mar 2023 11:50:40 -0800
Fix notifyvol to work with the new notify behavior
Since notify now only exits once the notification is dismissed,
it's run in the background, notifyvol sleeps for 0.1 seconds, and
exits (allowing another notifyvol process to run it's course).
The 0.1 second delay actually makes it less jittery than before
too.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/local/bin/bin/notifyvol b/local/bin/bin/notifyvol
@@ -11,4 +11,5 @@ set -C
echo $$ > /tmp/notifyvolpid ||
exit 0
trap 'rm -f /tmp/notifyvolpid' 0 INT TERM
-notify -u low -v $(vol | awk '{ print $2 }') Volume
+notify -u low -v $(vol | awk '{ print $2 }') Volume &
+sleep 0.1