mbadolato / iTerm2-Color-Schemes

Over 250 terminal color schemes/themes for iTerm/iTerm2. Includes ports to Terminal, Konsole, PuTTY, Xresources, XRDB, Remmina, Termite, XFCE, Tilda, FreeBSD VT, Terminator, Kitty, MobaXterm, LXTerminal, Microsoft's Windows Terminal, Visual Studio, Alacritty
http://www.iterm2colorschemes.com
Other
24.4k stars 6.41k forks source link

json: add json representation of schemes #414

Open colemickens opened 10 months ago

colemickens commented 10 months ago

Hi,

From what I can tell, the iterm colorscheme xml files are the source of truth and the theme-settings files for each terminal is rendered from that.

My goal is to re-use iterm2-color-schemes in the nix-rice project so that NixOS users can choose an iterm2 color theme and have it automatically applied to all of their installed terminals.

However, I don't want to handle XML parsing in Nix, as that's far more involved than parsing a JSON or TOML file. However, I'm not immediately seeing a JSON or TOML representation that contains all of the information from the schemes file.

(For example, the json and tomls I've looked at clearly have a smaller subset of all of the values that I can see skimming through the scheme XML files)

So, my ask would be, would you support a "schemes-json" folder that is "rendered" like other terminals, but would contain all the names/values from the xml scheme. This would make the full scheme data available programmatically, in a more convenient manner.

colemickens commented 10 months ago

I think I have a few questions:

  1. why is there ./themes and ./example/themes?
  2. why are there some themes duplicated in nix, rather than using the kitty-themes?