home
/
code
/
khome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
411d749
)
Sort wallpaper candidates by path
author
Siraaj Khandkar
<siraaj@khandkar.net>
Fri, 21 Jan 2022 04:00:04 +0000
(23:00 -0500)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Fri, 21 Jan 2022 04:00:19 +0000
(23:00 -0500)
home/bin/wallpaper_select
patch
|
blob
|
blame
|
history
diff --git
a/home/bin/wallpaper_select
b/home/bin/wallpaper_select
index
9ad2d7a
..
40bb4ca
100755
(executable)
--- 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
This page took
0.031829 seconds
and
4
git commands to generate.