From 15cddcbb410da3299bc341ddd4c04926b3757f89 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Thu, 20 Jan 2022 23:00:04 -0500 Subject: [PATCH] Sort wallpaper candidates by path --- home/bin/wallpaper_select | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/bin/wallpaper_select b/home/bin/wallpaper_select index 9ad2d7a..40bb4ca 100755 --- a/home/bin/wallpaper_select +++ b/home/bin/wallpaper_select @@ -5,5 +5,5 @@ set -euo pipefail WALL_FILE=~/wallpaper.txt FAVS_FILE=~/wallpaper_favs.txt # TODO Centralize in lib/vars -khomenu -l 50 < "$FAVS_FILE" | awk '{sub("^" $1 " +", ""); print}' > "$WALL_FILE" +sort -k 2 "$FAVS_FILE" | khomenu -l 50 | awk '{sub("^" $1 " +", ""); print}' > "$WALL_FILE" ~/.xlaunch.d/background -- 2.20.1