Skip to content

Instantly share code, notes, and snippets.

View SavingFrame's full-sized avatar

Ivan SavingFrame

View GitHub Profile
@SavingFrame
SavingFrame / iterm2ghostty.py
Created January 7, 2025 10:47
Convert .itermcolors file to the ghostty theme.
#!/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