wallust(1)
π NAME π
okay bestie, meet wallust(1) β straight from the General Commands Manual β the little tool that will generate a 16 color scheme based on an image. literally that's the whole name, and it ate. π
β¨ SYNOPSIS β¨
wallust [-I|--ignore-sequence] [-q|--quiet] [-s|--skip-sequences]
[-T|--skip-templates] [-u|--update-current] [-C|--config-file]
[-d|--config-dir] [--templates-dir] [-N|--no-config] [--no-hooks]
[-h|--help] [-V|--version] <subcommands>
π¦ DESCRIPTION π¦
so here's the vibe: wallust splits the whole color-making situation into these methods, bestie:
- Backends β how to extract the colors from the image (e.g. pywal uses
convert). - Color Space β get the most prominent color, and sort them according to the palette, configurable with a threshold.
- Palette β makes a scheme palette with the gathered colors (e.g. sets a light background).
Reminder: the options below can be used after the subcommand. for example:wallust --quiet run image.pngis the same aswallust run --quiet image.png.
π OPTIONS π
one bullet per flag, no skipping, periodt:
-I,--ignore-sequence <IGNORE_SEQUENCE>β won't send these color sequences. possible values:background,foreground,cursor,color0,color1,color2,color3,color4,color5,color6,color7,color8,color9,color10,color11,color12,color13,color14,color15.-q,--quietβ don't print anything.-s,--skip-sequencesβ skip setting terminal sequences.-T,--skip-templatesβ skip the templating process.-u,--update-currentβ only update the current terminal.-C,--config-file <CONFIG_FILE>β useCONFIG_FILEas the config file.-d,--config-dir <CONFIG_DIR>β usesCONFIG_DIRas the config directory, which holds bothwallust.tomland the templates files (if existent).--templates-dir <TEMPLATES_DIR>β usesTEMPLATE_DIRas the template directory.-N,--no-configβ won't read the config and avoids creating its config path.--no-hooksβ ignore all hooks.-h,--helpβ print help (see a summary with-h).-V,--versionβ print version.
π SUBCOMMANDS π
wallust-run(1)β generate a palette from an image.wallust-cs(1)β apply a certain colorscheme.wallust-theme(1)β apply a custom built in theme.wallust-migrateβ migrate v2 config to v3.wallust-debugβ print information about the program and the environment it uses.wallust-helpβ print this message or the help of the given subcommand(s).
π TERMINAL COLORS π
by default, wallust sends these sequences to all open terminals:
/dev/pts/on Linux/dev/ttys00on MacOS.psto search active terminals[1] on OpenBSD- updates
settings.jsonon Windows Terminal, to enable this scheme for the first time you will have to select it manually.
you can skip this with the -s or --skip-sequences flag.
when opening new terminals you will notice that the color sequences are not applied. to solve this you can send the sequences yourself when your shell opens. wallust will store the sequences in the cache directory as a file called sequences, the usual way is to cat ~/.cache/wallust/sequences in your .zshrc, .bashrc, etc.
π§ TEMPLATE VARIABLES π§
π COLORS π
these types are formatted like HEX rgb (e.g. #0A0B0C) by default. but a color literal can be represented in multiple ways, like HEXA rgba (e.g. #0A0B0CFF, where FF is the transparency value) or HEX rgb without the leading # (0a0b0c).
the color variables are color0, color1, color2, color3, color4, color5, color6, color7, color8, color9, color10, color11, color12, color13, color14, color15, background, foreground and cursor.
colors β additionally, this variable returns a vector of all the presented colors in the following order: starts with color0 to color15, background, foreground and at the end (index 18 if starting from 0), cursor. see TEMPLATE SYNTAX for a practical guide.
π«Ά MISCELLANEOUS π«Ά
wallpaperβ the full path to the current wallpaper, colorscheme file or the name of the theme in use.backendβ current backend being used.colorspaceβ current colorspace being used.paletteβ current palette being used.alphaβ defaults to100, can be modified in the config file or with--alpha/-a.alpha_decβ instead of0to100, displays it from0.00to1.00.
π₯ TEMPLATE FILTERS π₯
the Jinja2 format calls them 'filters', making a distinction from 'functions'. currently I haven't implemented any function because I haven't found a usecase (yet?).
β UNSIGNED INT β
alpha_hexaβ displays the alpha value as a hexadecimal color code[2] (e.g.{{ 100 | alpha_hexa }}outputs'FF'). this can only be used with numbers from0to100, so you are free to use thealphavariable with this filter.
π COLORS π
functions that only work with colors. these can be applied to a color, which can be the COLOR variables listed above (see TEMPLATE VARIABLES), or a literal color like "#0A0B0C". these functions return a color in the mentioned format (hex rgb, like "#000000"), unless written otherwise (like rgb, rgba, the other filters that explicitly say it's output format). this allows you to apply multiple filters at a time.
Note: if analphavalue is mentioned, it's defined in the config file, as a cli flag, and by default its value is100.
hexaβ outputs the color inhexaformat: e.g."#0A0B0CFF", whereFFis the alpha value. Note: internally this uses thealpha_hexafilter from above.rgbβ output the color inrgb, separated by commas. (e.g."10,11,12")xrgbβ output the color inxrgb, separated by slashes. (e.g."0A/0B/0C")stripβ output the color inhex, just like by default, but removes the leading#. (e.g."0A0B0C")redβ outputs only the red value. (e.g."10")greenβ outputs only the green value. (e.g."11")blueβ outputs only the blue value. (e.g."12")complementaryβ returns the respective complementary color.blend COLORβ takes another color as input, to blend it for the filtered color.lighten amountβ takes a float (decimal value) as input, from0.1to1.0, that corresponds to the amount to lighten the color by.darken amountβ takes a float (decimal value) as input, from0.1to1.0, that corresponds to the amount to darken the color by.saturate amountβ takes a float (decimal value) as input, from0.1to1.0, that corresponds to the amount to saturate the color by.
πΈ TEMPLATE SYNTAX πΈ
you reference variables in the following syntax:
{{color0}}
for applying a filter you use the pipe character (|) like this:
{{background | strip}}
and if the filter requires an argument:
{{background | lighten(0.3)}}
remember that filters require a valid type to apply to; in these examples we are using colors, which can even be defined literally:
{{ "#4ff4ff" | lighten(0.3)}}
for both, being applied to or as an argument of a filter:
{{ color2 | blend("4ff4ff")}}
if you need to write a literal {{, that doesn't reference any variable, you can write literals inside the delimiters:
{{ "{{" }} {{ "}}" }}
you can also use control flow expressions with {% %} delimiters:
{% if backend == "wal" %}
I am using the '{{backend}}' backend, getting a pywal like scheme.
{% elif backend == "fastresize" %}
This backend is called "{{palette}}" and, uses SIMD optimizations and is so fast!
{% else %}
I don't care about any other backends. Be happy!
{% endif %}
or inline them:
{{ "I'm using the kmeans algo!" if backend == "kmeans" else "Some backend is in use" }}
since mostly everything can be represented as a string (we've seen how colors are represented), indexing is very useful! the syntax for indexing is basically the Python one.
{# I'll hardcode a color based on the palette being used. #}
{% if palette[:4] == "dark" %}
somevariable = "#eeffbb"
{% else %}
somevariable = "#aabbee"
{% endif %}
and yes, you can comment inside your template; the comments won't be rendered in the final target file:
{# This won't be visible! #}
there are more control flow instructions, like the for loop:
{# This will generate color0 = .. to color18,
since `colors` contains background, foreground and cursor variables #}
{% for c in colors %}
color{{- loop.index }} = {{c-}}
{% endfor %}
you can add a minus sign (-) at the start or the end of the delimiters to suppress vertical spacing[3].
the syntax comes from the library being used, which is minijinja, a subset of the template engine Jinja2.
you can read more at: Jinja2 official syntax[4] and contrast features with the supported syntax at Compatibility of minijinja[5].
π¨ TEMPLATE EXAMPLE π¨
okay so you wanna use wallust-generated colors in a program? the move is templating the colors into its config file, like this, bestie:
# zathurarc config sample
# colors
set default-bg "{{background}}"
set default-fg "{{foreground}}"
# make it a bit lighter than background
set statusbar-bg "{{background | lighten(0.3)}}"
# make it darken by blending to a darken color
set statusbar-fg "{{foreground | blend("#eeeeee")}}"
# use it's complementary
set inputbar-bg "{{background | complementary}}"
Then you can add this file to ~/.config/wallust/templates and use the config file to template it. For example, zathura.template = 'zathurarc', and then define a target field β see wallust(5) for that part π«Ά.
π PYWAL TEMPLATE COMPATIBILITY π
You can enable pywal-like syntax in the config file with pywal = true β again, see wallust(5).
The syntax is simple, but more variables get added because its engine and spec don't support runtime evaluation functions.
And even though the implementation is simple enough to be added in wallust, using it is discouraged. like, it works, but maybe don't make it your whole personality π
π§ Variables π§
color0,color1,color2,color3,color4,color5,color6,color7,color8,color9,color10,color11,color12,color13,color14,color15,background,foreground,cursorβ plus their.rgb,.rgba,.xrgba,.strip,.red,.green, and.bluevariants. Just append the variant to the variable name (e.g."color0.rgb","background.blue"β¦). slay.wallpaper,alpha, andalpha_decare also available β these don't support the variants from above.
β¨ Syntax β¨
The syntax logic is simply βFind and Replaceβ, like:
somevariable = {color2}
anothervariable = {color8.rgb}
Don't forget to visit the full pywal spec[6] β it's linked in the notes below, iykyk π«Ά.
π SEE ALSO π
go give these a lil look, bestie:
wallust(5)wallust-run(1)wallust-cs(1)wallust-theme(1)wallust-themes[7]
π NOTES π
psto search active terminals βhttps://github.com/dylanaraps/pywal/pull/510- Hexadecimal color code β
https://gist.github.com/lopspower/03fb1cc0ac9f32ef38f4 - White space contron with the minus sign (
-) βhttp://jinja.pocoo.org/docs/templates/#whitespace-control - Official Jinja2 documentation β
https://jinja.palletsprojects.com/en/2.10.x/ - Compatibility of Minijinja with Jinja2 β
https://github.com/mitsuhiko/minijinja/blob/main/COMPATIBILITY.md - Full pywal template specification β
https://github.com/dylanaraps/pywal/wiki/User-Template-Files - Suggestions for new colorschemes returned by the
themessubcommand should be filled here. βhttps://codeberg.org/explosion-mental/wallust-themes
π BUGS π
found a bug? it lives here, bestie:
https://codeberg.org/explosion-mental/wallust
wallust-3.5 Β· wallust(1) Β· footer date β byeeee πβ¨
π¦ where this page comes from
- nixos 26.05: wallust 3.5.2
- nixpkgs unstable: wallust 3.5.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms