Skip to content

colorgen

A CLI tool that extracts colors from images and generates terminal colorschemes for kitty, AwesomeWM, and rofi.

Repo: Codeberg (primary) | GitHub (mirror)

CI PyPI version Total Downloads PyPI - Downloads

What it does

Give it an image, get a matching colorscheme.

colorgen wallpaper.jpg --preview --config kitty --theme dark --apply

It extracts dominant colors using K-means clustering, maps them to a 19-color terminal palette (background, foreground, cursor, colors 0-15), and writes config files for your tools.

Dark theme example

Rofi dark example

Supported targets

  • kitty - terminal emulator color config
  • AwesomeWM - window manager theme colors
  • rofi - launcher color theme (expects adi1090x/rofi layout)

License

GPL-3.0-or-later