aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 4051e49..fc85c50 100755
--- a/rofi-sound-output-chooser
+++ b/rofi-sound-output-chooser
@@ -29,7 +29,7 @@ else
echo -en "\x00prompt\x1fSelect Output\n"
# Get the list of outputs based on the description, which is what makes sense to a human
# and is what we want to show in the menu
- for x in $(pactl list sinks | grep -ie "description:"|cut -d: -f2)
+ for x in $(pactl list sinks | grep -ie "description:"|cut -d: -f2|sort)
do
# outputs with cut may have spaces, so use empty xargs to remove them, and output that to the rofi list
echo "$x"|xargs