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:
0e76831
)
Support setting current
author
Siraaj Khandkar
<siraaj@khandkar.net>
Sun, 23 Jan 2022 21:57:43 +0000
(16:57 -0500)
committer
Siraaj Khandkar
<siraaj@khandkar.net>
Sun, 23 Jan 2022 21:57:43 +0000
(16:57 -0500)
home/bin/wallpapers_preview
patch
|
blob
|
blame
|
history
diff --git
a/home/bin/wallpapers_preview
b/home/bin/wallpapers_preview
index
c859451
..
34d98d7
100755
(executable)
--- a/
home/bin/wallpapers_preview
+++ b/
home/bin/wallpapers_preview
@@
-17,6
+17,7
@@
read_command() {
l | L) echo 'CMD_MOVE_FORWARD';;
f | F) echo 'CMD_FAVORITE_ADD';;
r | R) echo 'CMD_FAVORITE_REMOVE';;
+ s | S) echo 'CMD_SET_CURRENT';;
*) echo 'CMD_UKNOWN';;
esac
}
@@
-84,6
+85,9
@@
paths_preview() {
| sort -u \
| sponge "$FILE_WALLPAPER_FAVS"
;;
+ CMD_SET_CURRENT)
+ printf 'Setting as current: "%s"\n' "$path" >&2
+ echo "$path" > "$FILE_WALLPAPER_CURR";;
CMD_UKNOWN)
continue;;
esac
This page took
0.023018 seconds
and
4
git commands to generate.