176 stable releases

new 1.239.31 Dec 4, 2024
1.239.29 Nov 28, 2024
1.239.14 Jul 29, 2024
1.239.4 Mar 31, 2024
1.125.0 Jul 30, 2022

#216 in Command line utilities

Download history 23/week @ 2024-08-17 185/week @ 2024-08-24 8/week @ 2024-08-31 1/week @ 2024-09-07 301/week @ 2024-09-14 288/week @ 2024-09-21 26/week @ 2024-09-28 8/week @ 2024-10-05 277/week @ 2024-10-12 478/week @ 2024-10-19 6/week @ 2024-10-26 78/week @ 2024-11-02 5/week @ 2024-11-09 220/week @ 2024-11-16 159/week @ 2024-11-23 339/week @ 2024-11-30

749 downloads per month

MIT license

43KB
758 lines

CI GitHub release (latest by date) GitHub Release Date Donate me

Changes the wallpaper from the command line.

Motivation

I love the command line, and I love eye candy, this tool combines both worlds by allowing me to change the background image from the command line.

Installation

Build from source

Use the cargo package manager to install the chwp crate:

cargo install chwp

Download latest binary

This snippet will download and install the latest chwp release:

LATEST_VERSION=$(curl -L -s -H 'Accept: application/json' https://github.com/RouHim/chwp/releases/latest | sed -e 's/.*"tag_name":"\([^"]*\)".*/\1/') && \
sudo curl -L -o /usr/bin/chwp https://github.com/RouHim/chwp/releases/download/$LATEST_VERSION/chwp-linux-x86-64 && \
sudo chmod +x /usr/bin/chwp

Arch Linux

Install chwp-bin AUR package:

yay -S chwp-bin

Usage

chwp [keywords]|[imageurl] span

Examples

Set a random wallpaper for the keyword ocean:

chwp ocean

Set a wallpaper from a specific image url:

chwp https://source.unsplash.com/1920x1080

Set a wallpaper from a local path. A random one will be chosen:

chwp /path/to/pictures/

Set a wallpaper from multiple keywords, a random one will be selected:

chwp water,sky,ocean

Combine multiple keywords with a +:

chwp night+city

The span parameter can be used to span the wallpaper over multiple screens:

chwp ocean span

Dependencies

~8–26MB
~362K SLoC