Skip to content

thacuber2a03/wal.lxl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

wal.lxl

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.)

Installation

Just call lpm install wal and restart. :)

Manually

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.

Configuration

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"

Screenshots

image image image image

About

pywal integration with Lite XL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages