#!/bin/sh if [ -z "$1" ]; then xwallpaper --maximize "$(find -L ~/pictures/wallpapers -type f | shuf -n 1)" else xwallpaper --maximize "$(find -L "$@" -maxdepth 1 -type f | shuf -n 1)" fi