#!/bin/sh /path/to/wpren reroll sleep 1 # makes it more likely the wallpaper will already have changed when the screen clicks back on.