diff options
author | Alex Kelly <kellya@arachnitech.com> | 2023-08-10 16:23:50 -0400 |
---|---|---|
committer | Alex Kelly <kellya@arachnitech.com> | 2023-08-10 16:23:50 -0400 |
commit | d6bd604d8c18d97ab722c9baf89d705a249d3f69 (patch) | |
tree | 7ca63ed9ac187b86a4a8038d8c91795408d939e7 | |
parent | 1748c71905756eeb3df54c6dfdd88c1078d5883b (diff) | |
download | rofi-sound-d6bd604d8c18d97ab722c9baf89d705a249d3f69.tar.gz |
Sort output by name
-rwxr-xr-x | rofi-sound-output-chooser | 2 |
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 |