doc(random_wallpaper): Explain that we use swaybg for Wayland

This commit is contained in:
Olivier DOSSMANN 2025-01-16 14:59:37 +01:00
parent a8c684bfe0
commit fb7bf06c0a

View File

@ -2,7 +2,8 @@
# random_wallpaper
#
# Requirement: feh (apt install feh)
# Requirement: feh (apt install feh) - for Xorg
# Requirement: swaybg - for Wayland
directory="$HOME/wallpapers"
minutes=15
@ -50,6 +51,7 @@ while true; do
# Change background
file="${array_files["$NUMBER"]}"
if "${is_wayland}"; then
# Use of swaybg program (used with swaymsg)
$PROGRAM output "*" bg "$directory/$file" fill
else
feh --bg-fill "$directory/$file"