This cli tool is my first Rust project, uses Wallhaven's API to automatically update desktop wallpaper. It supports all major operating systems (Windows / Mac / Linux). As it's my initial attempt, there may be bugs, and I welcome feedback and contributions to enhance it.
You can downlaod binaries for your operating system from the releases section
Or, if you have rust and cargo installed on your system:
cargo install paperwall
if you want to build this tool from source. Run these following commands:
git clone https://github.com/towsifkafi/paperwall.git
cd paperwall
cargo build --release
# Optionally, move the built executable to a location in your PATH
This tool is dead simple, to get a random wallpaper you can just run:
paperwall
By default, it'll fetch a pixel art wallpaper. You can change it by passing --query
or -q
argument:
paperwall -q "pokemon"
this will fetch a random wallpaper that has pokemon
tag. Also, you can search wallpapers via colorcodes:
paperwall --query "magikarp" --color "ffffff"
Simple program to fetch random image and set it as wallpaper
Usage: paperwall [OPTIONS]
Options:
-q, --query <QUERY> Query you want to search at https://wallhaven.cc [default: pixel]
-c, --color <COLOR> Search with colors [Don't add # in hex codes] [default: ]
-k, --key <KEY> Use API key [For searching NSFW images] [default: ]
-h, --help Print help
-V, --version Print version
Note
Wallhaven does not require an auth key. But if you want to search for NSFW queries, you'll need one. To pass an auth key use the --key
argument.
Since this is my first project in rust, there might a lot of bugs. Feel free to submit a Pull Request or post an issue if you encounter any bugs or errors.
Thanks to WallHaven's cool API.
Also, these libraries/links were very helpful resources throughout the development of this project and helped me learn my things related to Rust: