Warning: THE VOID WIKI IS DEPRECATED. It is no longer being maintained, contains outdated and incorrect information, and will eventually be shut down. Please refer to the Void Handbook, https://docs.voidlinux.org/, for the official documentation. If you can't find the information you're seeking, please raise an issue at https://github.com/void-linux/void-docs/issues

Pywal -

From Void Linux Wiki
Jump to navigation Jump to search

Pywal allow you to generate a colour scheme based on your wallpaper.

You need to have xrdb installed to handle the colours and feh to change your wallpaperl.


Integration

Bspwm

On bspwmrc you need to place something like this. wal -i "/home/user/Images/wal" will pick a random image from the wal folder and generate a colour scheme

wal -i "/home/user/Images/wal"
source "/home/user/.cache/wal/colors.sh"
bspc config normal_border_color $color0
bspc config focused_border_color $color7
bspc config active_border_color $color1
bspc config urgent_border_color $color1
bspc config presel_feedback_color $color7

Polybar

At the start of the file just load the 15 colours pywal make for your and use them in the rest of the configuration

xcolor0 = ${xrdb:color0}
xcolor1 = ${xrdb:color1}
xcolor2 = ${xrdb:color2}
xcolor3 = ${xrdb:color3}
xcolor4 = ${xrdb:color4}
xcolor5 = ${xrdb:color5}
xcolor6 = ${xrdb:color6}
xcolor7 = ${xrdb:color7}
xcolor8 = ${xrdb:color8}
xcolor9 = ${xrdb:color9}
xcolor10 = ${xrdb:color10}
xcolor11 = ${xrdb:color11}
xcolor12 = ${xrdb:color12}
xcolor13 = ${xrdb:color13}
xcolor14 = ${xrdb:color14}
xcolor15 = ${xrdb:color15}

Then you can use this on your modules. Examples for bspwm module

label-focused-foreground = ${colors.xcolor0}
label-focused-background = ${colors.xcolor7}

label-occupied-foreground = ${colors.xcolor1}
label-occupied-background = ${colors.xcolor0}

label-occupied-foreground = ${colors.xcolor1}
label-occupied-background = ${colors.xcolor0}

Examples for xwindow module

format-foreground = ${colors.xcolor7}
format-background = ${colors.xcolor0}