Kitty
Mechanism
Section titled “Mechanism”Kitty supports reloading configuration on the fly. It does not natively support “themes” in the sense of swapping files without restarting, EXCEPT via:
- Live Reload: It monitors
kitty.confand included files for changes. - Socket:
kitten @ set-colors(requiresallow_remote_control).
2. Themis’s Approach
Section titled “2. Themis’s Approach”We use the Include Pattern combined with Live Reload. We generate a file containing only
the color/font variables, which kitty.conf includes. When Themis updates this file, Kitty detects
the file change and re-renders the terminal instantly. No signals needed.
3. User Setup
Section titled “3. User Setup”One-time: Add this line to ~/.config/kitty/kitty.conf:
include .themis.conf4. Equivalent Configuration
Section titled “4. Equivalent Configuration”If this wasn’t built-in, a user would define it in themis.yaml like this:
enroll: kitty: type: template input: "~/.config/themis/templates/kitty.conf.j2" output: "~/.config/kitty/.themis.conf" # No reload command needed; Kitty watches the file.5. Template Variables Used
Section titled “5. Template Variables Used”bg,fgcolor0..color15font_family(optional)opacity(optional)