From f0bbe839a300384c3065d0061a1280105d80ff8f Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 28 Jul 2024 14:47:48 +0200 Subject: [PATCH] toggle-mute: escape descriptions for shell output --- bin/toggle-mute | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/toggle-mute b/bin/toggle-mute index d65b701..6395cb7 100755 --- a/bin/toggle-mute +++ b/bin/toggle-mute @@ -18,6 +18,7 @@ case $1 in } } for (source in muted) { + gsub(/['"'"'"\\\$\(\)`]/, "\\\\&", descriptions[source]) print "echo "(allmuted?"🔊":"🔇")" "descriptions[source] print "pactl set-'$1'-mute "source" "(!allmuted); }