This commit is contained in:
Matthieu Fortin [CPC/CCP] 2024-11-18 14:55:19 -05:00
parent fee73b578c
commit b289393d41

View file

@ -0,0 +1,12 @@
#!/bin/bash
set -euo pipefail
directory=~/Pictures/wallpapers
#wallpaper=~/.cache/images/wallpaper.png
#monitor=$(hyprctl monitors | grep Monitor | awk '{print $2}')
if [ -d "$directory" ]; then
random_background=$(find $directory -type f | shuf -n 1)
wallpaper "$random_background"
wpaperctl reload-wallpaper
fi