#!/bin/sh WALLPAPER_DIR=~/Pictures/wallpapers if [ ! -z "$1" ]; then WALLPAPER_DIR="$1" fi feh --bg-fill "$WALLPAPER_DIR/$(ls $WALLPAPER_DIR | sort -R | head -n1)"