#!/bin/sh name=$(find ~/pictures/wallpapers -type f | shuf -n 1) # xwallpaper --zoom $name PID=$(pidof swaybg) swaybg -i "$name" -m fill & sleep 0.4 kill "$PID" echo "$name" | tee /tmp/wallpapername