colorgen
Generate terminal colorschemes from images for kitty, AwesomeWM, Waybar, dunst, and rofi.
Install
Requires Python 3.12 or 3.13.
pip install colorgen
Or from source:
git clone https://codeberg.org/piotrkrzysztof/colorgen.git
cd colorgen
make install
Usage
# Preview colors from an image
colorgen wallpaper.png --preview
# Generate and apply a kitty colorscheme
colorgen wallpaper.png --config kitty --theme dark --apply
# Multiple targets
colorgen wallpaper.png --config kitty awesome rofi --apply
# All targets
colorgen wallpaper.png --full-config --theme dark --apply
After applying - old theme gets commented out, not deleted.
How it works
Extracts 18 dominant colors from the image via K-means clustering, then maps them to a 19-color terminal palette (bg, fg, cursor, colors 0-15) based on hue diversity and luminance.
Supported targets
- kitty - terminal color config
- AwesomeWM - window manager theme (awesomewm-basileia layout)
- Waybar - status bar colors via
@define-colorCSS variables - dunst - notification daemon colors via
dunstrc.ddrop-in - rofi - launcher theme (adi1090x/rofi layout)
Development
make install # install deps
make test # run tests
make lint # check code style
License
GPL-3.0-or-later. Built with Pylette.
Release files for colorgen 1.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| colorgen-1.1.6.tar.gz | 27.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| colorgen-1.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.6 kB
Release files / colorgen-1.1.6.tar.gz
| Download URL | colorgen-1.1.6.tar.gz |
|---|---|
| Size | 27.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d94bef0304f081713f60850ebea9ae0d872350958a59562456f79e5827f8099
|
|
BLAKE2b-256 checksum How to use checksums |
b292ea1080ff9464bc1f6c6da2a19a2042d8945c8a3e7c70492dbb99d736ae45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / colorgen-1.1.6-py3-none-any.whl
| Download URL | colorgen-1.1.6-py3-none-any.whl |
|---|---|
| Size | 32.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f490819c1f6ed0f9425c26ed9beaa91e948aa36f38b66ab9b75a58f72558d89
|
|
BLAKE2b-256 checksum How to use checksums |
078c2d75df34308d335cbb0f117f39ca59c571c98761f0556ceac172906286f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|