about summary refs log tree commit diff stats
path: root/home-manager/config/yambar/scripts/sound-volume
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xhome-manager/config/yambar/scripts/sound-volume2
1 files changed, 1 insertions, 1 deletions
diff --git a/home-manager/config/yambar/scripts/sound-volume b/home-manager/config/yambar/scripts/sound-volume
index 41230141..bdd42bdd 100755
--- a/home-manager/config/yambar/scripts/sound-volume
+++ b/home-manager/config/yambar/scripts/sound-volume
@@ -4,7 +4,7 @@
 SHELL_LIBRARY_VERSION="1.1.3" . %SHELL_LIBRARY_PATH
 
 while true; do
-    volume=$(pactl get-sink-volume 0 | awk 'BEGIN { FS="/" } {gsub("%","",$2); gsub(" ","",$2)} {printf $2}')
+    volume="$(pactl get-sink-volume 0 | awk 'BEGIN { FS="/" } {gsub("%","",$2); gsub(" ","",$2)} {printf $2}')"
 
     if [ "$volume" -eq 0 ]; then
         echo "muted|bool|true"