aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Valderrama <nivalderramas@unal.edu.co>2023-05-07 20:03:17 -0500
committerNicolas Valderrama <nivalderramas@unal.edu.co>2023-05-07 20:03:17 -0500
commit1a3d1047e06ed59688cf8f4d985952c83d9d71f5 (patch)
tree72ca8554150eb2f03cdd443b3ab06291f6a9f3f5
parent06fd86bf78406d9eaca7426853e3a2b45fcdd119 (diff)
downloadrofi-sound-1a3d1047e06ed59688cf8f4d985952c83d9d71f5.tar.gz
Make grep ignore special characters when selecting a device
-rwxr-xr-xrofi-sound-output-chooser2
1 files changed, 1 insertions, 1 deletions
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