Gnome Change Wallpaper is a simple project that allows you to randomly change your GNOME desktop wallpaper quickly and easily. This project provides an automatic installation script to set up everything you need, including a global keyboard shortcut (Ctrl+Alt+W) for maximum convenience.
- 🎲 Random Wallpaper Change: Automatically selects a random image from your wallpaper folder.
- ⚙️ Easy Installation: Just run one script to copy the necessary files and set up the shortcut.
- ⌨️ Keyboard Shortcut: Change your wallpaper anytime by pressing
Ctrl+Alt+W. - 🖼️ Multi-Format Support: Supports
.jpg,.png, and.jpegfiles. - 🔔 Desktop Notifications: Get a desktop notification after the wallpaper is successfully changed (optional).
- 🔧 Flexible Configuration: Various configuration options via the installation script.
Once installed, the main script (change_wallpaper.sh) will:
- Search for all images in the
~/Wallpapersfolder. - Randomly select one image.
- Set the selected image as your GNOME desktop wallpaper.
- Display a notification (if enabled).
The install.sh script will handle all the initial setup for you automatically.
- OS: Linux with GNOME Desktop Environment
- Shell: Bash
- Dependencies:
gsettings(usually pre-installed on GNOME)notify-send(for desktop notifications)readlink,dirname,cp,chmod(standard Linux utilities)
git clone https://github.com/tudeorangbiasa/GnomeChangeWallpaper.git
cd GnomeChangeWallpaper/chmod +x install.sh
./install.shPlace your favorite .jpg, .png, or .jpeg images into the ~/Wallpapers/ folder.
Press Ctrl+Alt+W anytime to get a new wallpaper!
You can customize several settings by editing the install.sh file before running it:
| Variable | Default | Description |
|---|---|---|
SHORTCUT_BINDING |
<Control><Alt>w |
Keyboard shortcut combination |
ENABLE_NOTIFICATIONS |
true |
Enable/disable desktop notifications |
INSTALL_DIR |
$HOME |
Installation target directory |
GnomeChangeWallpaper/
├── install.sh # Main installation script
├── README.md # Project documentation
├── Scripts/
│ └── change_wallpaper.sh # Wallpaper changer script
└── Wallpapers/ # Folder to store wallpapers
After installation, the structure in your home directory will look like this:
~/
├── Scripts/
│ └── change_wallpaper.sh
└── Wallpapers/
└── (your wallpapers here)
- Press
Ctrl+Alt+Wto randomly change your wallpaper.
~/Scripts/change_wallpaper.shSolution: Ensure you are running install.sh from within the cloned project directory.
Solution:
- Check if the shortcut is registered:
gsettings get org.gnome.settings-daemon.plugins.media-keys custom-keybindings - Restart GNOME Shell by pressing
Alt+F2, typingr, and pressing Enter.
Solution: Ensure notify-send is installed:
sudo apt install libnotify-bin # Ubuntu/Debian
sudo dnf install libnotify # FedoraContributions are always welcome! Please:
- Fork this repository.
- Create a new feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
This project is open source. Feel free to use and modify it as needed.
- tudeorangbiasa - Initial work - GitHub
- Thanks to the GNOME community for their comprehensive
gsettingsdocumentation. - Inspired by various wallpaper changer scripts in the Linux community.
Enjoy fresh wallpapers every time HEHEHA! 🎨