Skip to content

colorgen

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

Repo: Codeberg (primary) ยท GitHub (mirror)

PyPI version Total Downloads PyPI - Downloads CI

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 (awesomewm-basileia layout)
  • Waybar - status bar colors via @define-color CSS variables
  • dunst - notification daemon colors via dunstrc.d drop-in
  • rofi - launcher color theme (expects adi1090x/rofi layout)

License

GPL-3.0-or-later