From 1a3d1047e06ed59688cf8f4d985952c83d9d71f5 Mon Sep 17 00:00:00 2001 From: Nicolas Valderrama Date: Sun, 7 May 2023 20:03:17 -0500 Subject: Make grep ignore special characters when selecting a device --- rofi-sound-output-chooser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rofi-sound-output-chooser b/rofi-sound-output-chooser index d51c71d..4051e49 100755 --- a/rofi-sound-output-chooser +++ b/rofi-sound-output-chooser @@ -15,7 +15,7 @@ then # the output from the selection will be the desciption. Save that for alerts desc="$*" # Figure out what the device name is based on the description passed - device=$(pactl list sinks|grep -C2 "Description: $desc"|grep Name|cut -d: -f2|xargs) + device=$(pactl list sinks|grep -C2 -F "Description: $desc"|grep Name|cut -d: -f2|xargs) # Try to set the default to the device chosen if pactl set-default-sink "$device" then -- cgit