#!/bin/sh if [ -z "$1" ]; then file=$(find -L ~/pictures/wallpapers -type f | shuf -n 1) else file=$(find -L "$@" -maxdepth 1 -type f | shuf -n 1) fi display -backdrop -window root "$file"