Files
2025-10-07 18:03:04 +07:00

16 lines
406 B
Bash
Executable File

#!/usr/bin/env sh
directory=~/Pictures/wallpaper
monitors=`hyprctl monitors | grep Monitor | awk '{print $2}'`
echo $(ls $directory/*)
if [ -d "$directory" ]; then
for monitor in $monitors; do
random_background=$(ls $directory/* | shuf -n 1)
hyprctl hyprpaper unload all
hyprctl hyprpaper preload $random_background
hyprctl hyprpaper wallpaper "$monitor, $random_background"
done
fi