paperwall

Crates.iopaperwall
lib.rspaperwall
version0.1.0
sourcesrc
created_at2024-01-31 15:43:44.166674
updated_at2024-01-31 15:43:44.166674
descriptionSimple program to fetch random image and set it as wallpaper
homepagehttps://github.com/towsifkafi/paperwall
repositoryhttps://github.com/towsifkafi/paperwall
max_upload_size
id1121893
size51,056
Towsif Kafi (towsifkafi)

documentation

README

./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:

Commit count: 0

cargo fmt