#!/bin/sh sleep 2 # Get currently loaded image IMG=`cat /tmp/$USER-desktop-anim | tail -n1` # Load it for the monitors swww img $IMG -o $1