This commit is contained in:
wt committed 2024-08-08 16:34:52 +07:00
1 parent 677c7de3aa
commit 4f6abd0c84
5 files changed
+2 -2

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env sh
directory=~/Pictures/wallpaper
monitors=`hyprctl monitors | grep Monitor | awk '{print $2}'`
echo $(ls $directory/*)
while [ true ]; do
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"
sleep 2
done
fi
sleep 60
done