From d6bd604d8c18d97ab722c9baf89d705a249d3f69 Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Thu, 10 Aug 2023 16:23:50 -0400 Subject: Sort output by name --- rofi-sound-output-chooser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rofi-sound-output-chooser') 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 -- cgit