Skip to content

tiagomiguelcs/random-wallpaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Random Wallpaper Bash Script (rwallpaper)

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.

How to Install

  1. Clone this repository and change to its directory:
$ git clone https://github.com/tiagomiguelcs/random-wallpaper.git
$ cd random-wallpaper
  1. (Optional) In the script, set the path variable to the wallpapers' directory:
path=~/Pictures/wallpapers/ 
  1. Run the install script and the main script:
./install.sh && ./rwallpaper
  1. In your desktop settings, set the wallpaper to the one defined in the script (e.g., ~/Pictures/twall/today.jpg)

desktop-settings

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
  1. Enjoy!