dotfiles/.local/scripts/rand-wallpaper

10 lines
200 B
Text
Raw Normal View History

2025-02-01 00:22:29 -05:00
#!/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