about summary refs log tree commit diff
path: root/sh/shufwall
blob: 5b249e12dfc16946e4e479c86eec7d30bd82fa9d (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

if [ -z "$1" ]; then
	file=$(find -L "$XDG_PICTURES_DIR/wallpapers" -type f | shuf -n 1)
else
	file=$(find -L "$@" -maxdepth 1 -type f | shuf -n 1)
fi

display -resize "${SCR_WIDTH}x$SCR_HEIGHT" -backdrop -window root "$file"