Update Void pkgs
[khome.git] / home / bin / wallpaper_shuffle
CommitLineData
d0266656
SK
1#! /bin/sh
2
3set -e
4
5path=$(
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)
20printf "$path\n" >&2
21feh --bg-scale "$path"
This page took 0.075226 seconds and 4 git commands to generate.