This repository has been archived on 2026-11-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles/local_bin/random_wallpaper
T

16 lines
441 B
Bash
Executable File

#!/usr/bin/env bash
DIR="$HOME/ownCloud/Personal/Wallpaper"
INTERVAL=300 # seconds between changes
awww init 2>/dev/null
while true; do
for monitor in "DP-1" "DP-2" "DP-4" "DP-5"; do
img="$(find "$DIR" -type f \( -iname '*.jpg' -o -iname '*.png' -o -iname '*.jpeg' \) | shuf -n 1)"
[ -n "$img" ] && awww img "$img" --transition-type any --transition-duration 1 --outputs "$monitor"
done
sleep "$INTERVAL"
done