Skip to content

hodler converts iTerm 2 color schemes into forms that X resources users (XTerm) and Suckless Simple Terminal users, Alacritty users, and Linux Virtual Terminal users can use.

License

Notifications You must be signed in to change notification settings

matttproud/hodler

Repository files navigation

Hodler

Hodler converts iTerm 2 color scheme Property Lists into forms that the Suckless Simple Terminal "st" and X resources-based terminal emulaters (e.g., XTerm) and Alacritty and Linux virtual terminal (virtual console) can consume.

The name comes from the Swiss painter Ferdinand Hodler: https://www.artfritz.ch/MUSE/ZH_KH_hodlersaal_2020/index.html.

Installation

Hodler is built using the Go Programming Language. Go is required to build and modify the tool.

$ go install -v github.com/matttproud/hodler/cmd/hodler@latest

Go generates staticly linked binaries, so users of Hodler needn't have Go installed for casual use.

Usage

Users of st can generate a fragment to embed into their local config.h.

$ hodler -in adio.itermcolors \
      -out config.h -output_format Suckless

Users of XTerm and other X resources systems will fancy this:

$ hodler -in adio.itermcolors \
      -out Xresources -output_format Xresources

Users of Alacritty can generate a YAML fragment to embed into their local alacritty.yml:

$ hodler -in adio.itermcolors \
      -out alacritty.yml -output_format Alacritty

Users of Linux virtual terminal can generate a command line fragment to pass to the kernel on boot:

$ hodler -in adio.itermcolors \
      -out kernel.txt -output_format Kernel

Examples

Borland theme in ST:

Demo of ST with Borland Theme

Borland theme in XTerm:

Demo of XTerm with Borland Theme

Borland theme in Alacritty:

Demo of Alacritty with Borland Theme

Solarized Light on Linux Virtual Terminal:

Demo of Virtual Terminal with Solarized Light

Reference case of Borland theme in iTerm 2:

Demo of iTerm 2 with Borland Theme

Caveats

Not every output format is as expressive as iTerm 2's native capabilities. Where Hodler knows fidelity will be lost, it remarks it as such in the output.

Roadmap

I'd eventually like Hodler to be able to convert between various theme formats universally and not be bound to iTerm 2 as input. This is trickier than it sounds due to some of the input formats not having a strong file format to be relied upon, or at least a file format without considerable amounts of extraneous fields to be filtered.

Build Status

Build Status

About

hodler converts iTerm 2 color schemes into forms that X resources users (XTerm) and Suckless Simple Terminal users, Alacritty users, and Linux Virtual Terminal users can use.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages