wallust - Generate colors from an image

crates io downloads license dependency status CodeBerg

gif

sources[^sources]

Features

Templating & Config File

You can use wallust generated colors in your program by templateing them in it's config file. Below an example: ```

zathurarc config file

keybindings

...

colors

set default-bg "{color2}" set default-fg "{foreground}" set statusbar-bg "{color4}" set statusbar-fg "{color6}" set inputbar-bg "{color1}" Then add this file to `~/.config/wallust/` (e.g. __~/.config/wallust/zathurarc__) and add a new entry to `wallust.toml` toml [[entry]] template = "zathurarc" target = "~/.config/zathura/zathurarc" ```

NOTE: The template name doesn't have to match the target name, e.g. the file could be named sample.conf, and thus the entry would have template = "sample.conf", but the target can remain the same.

Usage

wallust my_wallpaper.png

Installation

cargo install wallust

or, if you cloned the repo cargo install --path . or just build it (cargo build --release) and copy the binary to one folder present in your $PATH like /usr/local/bin cargo build --release cp -f ./target/release/wallust /usr/local/bin

NetBSD

If you are using NetBSD, a native package is available from the official repositories. To install it, simply run: pkgin install wallust

TODO