We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

dwam
Posts: 82
Joined: Thu Sep 04, 2025 5:13 pm
Location: Bordeaux, France

Sharing a script for choosing your Trixie Desktop wallpaper

Fri Oct 03, 2025 1:06 pm

Hi !

If you just switched to Trixie, you are very likely to be looking for your own customizations. Although the new theme looks nice, I have changed a few things myself, including the wallpaper and because there are many options, I just write a tiny script that helps choosing your favorite one very easily.

Here's the code. Just create a file like:

Code: Select all

touch wallpaper-select.sh
Make it executable with

Code: Select all

chmod +x wallpaper-select.sh
And finally copy the next lines in it and save

Code: Select all

#!/bin/bash

# This script will rotate all wallpapers from /usr/share/rpd-wallpapers
# let them displayed for 15 seconds each, and will do so indefinitely
# until killed with Ctrl-C

WALLPAPER_DIR="/usr/share/rpd-wallpaper"
DELAY=15 # seconds

while true; do
    for wallpaper in "$WALLPAPER_DIR"/*; do
        # echo "$wallpaper"
        pcmanfm --set-wallpaper "$wallpaper"
        sleep $DELAY
    done
done
Now you can execute the script, either by a double-click (chose execute in terminal) or from your terminal

Code: Select all

./wallpaper-select.sh
Minimize all your opened app windows so you can see your desktop freely and just drag your terminal window to a side so it won't bother you too much.

All the wallpaper files will now rotate as a slideshow so you can see which one you like more. When you're happy, just press CTRL+C or close the terminal window. The last wallpaper on screen is now your Desktop wallpaper.

Obviously you can add your own wallpapers in /usr/share/rpd-wallpapers or modify the path in the script to use another directory.

Have fun with Trixie !

Return to “Raspberry Pi OS”