https://github.com/thacuber2a03/wal.lxl
pywal integration with Lite XL
https://github.com/thacuber2a03/wal.lxl
lite-xl pywal
Last synced: about 1 month ago
JSON representation
pywal integration with Lite XL
- Host: GitHub
- URL: https://github.com/thacuber2a03/wal.lxl
- Owner: thacuber2a03
- License: mit
- Created: 2023-08-10T20:12:26.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T23:05:01.000Z (about 2 years ago)
- Last Synced: 2025-03-22T04:11:23.326Z (8 months ago)
- Topics: lite-xl, pywal
- Language: Lua
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wal.lxl
Integrates [pywal](https://github.com/dylanaraps/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
### Through [LPM (Lite XL Plugin Manager)](https://github.com/lite-xl/lite-xl-plugin-manager)
Just call `lpm install wal` and restart. :)
### Manually
`git clone` the repository into `~/.config/lite-xl/plugins/wal`. Then, restart the editor.
```bash
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](https://github.com/TorchedSammy/Evergreen.lxl) is implicitly supported)
Example config:
```lua
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



