about summary refs log tree commit diff stats
path: root/home-manager/config/yambar/scripts/sound-volume
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-05-28 22:11:24 +0200
committerSoispha <soispha@vhack.eu>2023-05-28 22:11:24 +0200
commitcb3362644cb631a3d31c5091ab663c4744b3e132 (patch)
tree0a3862bf9d15aced6a52ea4133556c21b5b2f62f /home-manager/config/yambar/scripts/sound-volume
parentFix(hm/conf/lf/cmds): Rework some of them (diff)
downloadnixos-config-cb3362644cb631a3d31c5091ab663c4744b3e132.zip
Fix(hm/conf/yambar/scripts): Quote scripts
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"