home
/
code
/
khome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch experiment README to .md
[khome.git]
/
home
/
bin
/
wallpaper_shuffle
diff --git
a/home/bin/wallpaper_shuffle
b/home/bin/wallpaper_shuffle
index
1fd851a
..
0c05d15
100755
(executable)
--- a/
home/bin/wallpaper_shuffle
+++ b/
home/bin/wallpaper_shuffle
@@
-2,20
+2,4
@@
set -e
set -e
-path=$(
- find \
- $@ \
- -type f \
- | awk '
- {
- paths[i++] = $0
- }
-
- END {
- srand()
- j = int(i * rand())
- print paths[j]
- }'
-)
-printf "$path\n" >&2
-feh --bg-scale "$path"
+feh --bg-scale "$(find "$DIR_WALLPAPERS" -type f | randline)"
This page took
0.029916 seconds
and
4
git commands to generate.