Set the same random wallpaper on multiple monitors without any "fancy" app. The script was successfully tested using Linux Mint 21.1 Xfce Edition, Pop!_OS, and Debian 12 with the Cinnamon and Gnome desktop environments.
- Clone this repository and change to its directory:
$ git clone https://github.com/tiagomiguelcs/random-wallpaper.git
$ cd random-wallpaper
- (Optional) In the script, set the
path
variable to the wallpapers' directory:
path=~/Pictures/wallpapers/
- Run the install script and the main script:
./install.sh && ./rwallpaper
- In your desktop settings, set the wallpaper to the one defined in the script (e.g.,
~/Pictures/twall/today.jpg
)
If you are using the gnome desktop, please set the wallpaper as follows:
gsettings set org.gnome.desktop.background picture-uri-dark file:///home/[username]/Pictures/twall/today.jpg
gsettings set org.gnome.desktop.background picture-uri file:///home/[username]/Pictures/twall/today.jpg
(Alternative) Use feh
to set the wallpaper:
feh --bg-scale ~/Pictures/twall/today.jpg
- Enjoy!