home
/
code
/
khome.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1fd851a52d3bdb35206e606404d521c3ce498972
[khome.git]
/
home
/
bin
/
wallpaper_shuffle
1
#! /bin/sh
2
3
set -e
4
5
path
=
$
(
6
find
\
7
$@ \
8
-type
f \
9
|
awk
'
10
{
11
paths[i++] =
$0
12
}
13
14
END {
15
srand()
16
j = int(i * rand())
17
print paths[j]
18
}'
19
)
20
printf
"
$path
\n
"
>&
2
21
feh
--bg-scale
"
$path
"
This page took
0.077781 seconds
and
3
git commands to generate.