1 unstable release
0.1.0 | Jan 31, 2024 |
---|
#727 in Images
16KB
72 lines
./paperwall - A simple cli-tool for random wallpapers
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.
Installation
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
Building from source
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
Usage
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"
[!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.
Help Page:
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
Development
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.
Source
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:
Dependencies
~8–21MB
~282K SLoC