diff options
author | Soispha <soispha@vhack.eu> | 2023-05-28 22:11:24 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-05-28 22:11:24 +0200 |
commit | cb3362644cb631a3d31c5091ab663c4744b3e132 (patch) | |
tree | 0a3862bf9d15aced6a52ea4133556c21b5b2f62f /home-manager/config/yambar/scripts/sound-volume | |
parent | Fix(hm/conf/lf/cmds): Rework some of them (diff) | |
download | nixos-config-cb3362644cb631a3d31c5091ab663c4744b3e132.zip |
Fix(hm/conf/yambar/scripts): Quote scripts
Diffstat (limited to 'home-manager/config/yambar/scripts/sound-volume')
-rwxr-xr-x | home-manager/config/yambar/scripts/sound-volume | 2 |
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" |