Integrates pywal into Lite XL, so that your probably-favourite-text-editor also looks sorta like your wallpaper. (thank me later, Arch users)
NOTE: The plugin has some defaults set, but it is highly recommended that you customize them, as they're not perfect. (Especially to light theme users.)
Through LPM (Lite XL Plugin Manager)
Just call lpm install wal
and restart. :)
git clone
the repository into ~/.config/lite-xl/plugins/wal
. Then, restart the editor.
git clone https://github.com/ThaCuber/wal ~/.config/lite-xl/plugins/wal
You can also download the source code and either rename init.lua
to wal.lua
, or make a new folder and store the init.lua
as-is onto it. This allows you to add other files alongside it later.
config.plugins.wal
is your friend here. It contains 4 fields.
All of them are tables and they go like so:
colors
: Colors of the things in the screen. Stuff like the background, scrollbar, text, etc.syntax_colors
: The syntax highlighter's colors. Keywords, strings, numbers, literals, etc.brightness
: The brightness scale of the things in the screen. All brightness values are normalized, so 0 is black and 1 is the original color. You can also use numbers outside that range.syntax_brightness
: The brightness of the syntax hightlighter's colors.
Each field has, as key, the style
field you want to modify, and as value, the index of a color, or a special color.
(yeah, this means Evergreen.lxl is implicitly supported)
Example config:
local config = require 'core.config'
local wal = config.plugins.wal
wal.colors.selection = 0 -- set selection highlight to color0
wal.brightness.selection = 1.5 -- increase it's brightness by 150%
wal.syntax_colors.number = 2 -- set number highlighting to color2
wal.colors.caret = "cursor" -- set caret's color to "special.cursor"