This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# | |
# Convert .itermcolors files to ghostty terminal color settings. | |
# Modded from https://gist.github.com/unglitched/379858c221885a62987b74e39a6c292b | |
# You can pass url link to the raw file via --url or filepath via --file. | |
# Example of usage: | |
# python3 iterm2ghostty.py --file One\ Dark.itermcolors > onedark | |
# python3 iterm2ghostty.py --url https://raw.githubusercontent.com/nathanbuchar/atom-one-dark-terminal/refs/heads/master/scheme/iterm/One%20Dark.itermcolors > onedark | |
import xml.etree.ElementTree as ET |