aboutsummaryrefslogtreecommitdiffstats
path: root/rofi-sound-output-chooser
diff options
context:
space:
mode:
authorAlex Kelly <kellya@arachnitech.com>2023-08-10 16:23:50 -0400
committerAlex Kelly <kellya@arachnitech.com>2023-08-10 16:23:50 -0400
commitd6bd604d8c18d97ab722c9baf89d705a249d3f69 (patch)
tree7ca63ed9ac187b86a4a8038d8c91795408d939e7 /rofi-sound-output-chooser
parent1748c71905756eeb3df54c6dfdd88c1078d5883b (diff)
downloadrofi-sound-d6bd604d8c18d97ab722c9baf89d705a249d3f69.tar.gz
Sort output by name
Diffstat (limited to 'rofi-sound-output-chooser')
-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