X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Fbin%2Fwallpaper_select;h=257fd9fdd751b5d93601ffcbb795717e92c892da;hb=101c2c385239d4de389357403085627e06fa7850;hp=9ad2d7a4299a590f359829222d14adb023c32d6a;hpb=411d749a5958b8638675da59c5e140d9b7de2bec;p=khome.git diff --git a/home/bin/wallpaper_select b/home/bin/wallpaper_select index 9ad2d7a..257fd9f 100755 --- a/home/bin/wallpaper_select +++ b/home/bin/wallpaper_select @@ -2,8 +2,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 "$FILE_WALLPAPER_FAVS" | khomenu -l 50 | awk '{sub("^" $1 " +", ""); print}' > "$FILE_WALLPAPER_CURR" ~/.xlaunch.d/background