From cb3362644cb631a3d31c5091ab663c4744b3e132 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 28 May 2023 22:11:24 +0200 Subject: Fix(hm/conf/yambar/scripts): Quote scripts --- home-manager/config/yambar/scripts/sound-volume | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'home-manager/config/yambar/scripts/sound-volume') 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" -- cgit 1.4.1