home
/
code
/
khome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support setting current
[khome.git]
/
home
/
bin
/
wallpapers_preview
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';;
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
}
*) echo 'CMD_UKNOWN';;
esac
}
@@
-84,6
+85,9
@@
paths_preview() {
| sort -u \
| sponge "$FILE_WALLPAPER_FAVS"
;;
| 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
CMD_UKNOWN)
continue;;
esac
This page took
0.027246 seconds
and
4
git commands to generate.