A simple bash script to automatically fetch and apply a random wallpaper from Wallhaven every time you run it. Works seamlessly on KDE Plasma every desktop environment.
- Fetches random high-quality wallpapers from Wallhaven.
- Applies the wallpaper instantly.
- Works without API keys.
- Supports manual runs or automated execution on startup.
Ensure you have the following installed:
curlβ for fetching images.wgetβ for downloading the wallpaper.
- Clone the repository:
git clone https://github.com/tusharchopra07/wallhaven-script.git cd wallhaven-script - Make the script executable :
chmod +x change-wallpaper.sh
- Run the script:
./change-wallpaper.sh
To run the script automatically at startup:
mkdir -p ~/.config/autostart-scripts
cp change-wallpaper.sh ~/.config/autostart-scripts/
chmod +x ~/.config/autostart-scripts/change-wallpaper.shNow, your wallpaper will change automatically every time you log in! π¨
Fetching wallpaper from Wallhaven...
Wallpaper downloaded successfully!
Applying wallpaper...
Done! Enjoy your new wallpaper.
Feel free to fork this repository and submit pull requests to improve functionality!
This project is licensed under the MIT License.
Made with β€οΈ by tusharchopra07