dotfiles/private_dot_config/kitty
Anton Volnuhin 9e2667f8fe kitty: capture theme choices however the kitten was launched
Saving a theme stopped sticking: the choice was captured only by the fish
`kitten` wrapper, so `kitty +kitten themes`, a keybinding or any non-fish
shell wrote <appearance>-theme.auto.conf directly and the next regeneration
overwrote it from theme-modes. The dark slot had already lost a pick that
way -- dark-theme.auto.conf held #0d0f31 while canonical dark said #2b2c2e.

Move the capture into apply-theme-mode.sh, which every path runs. It records
a cksum of each generated file after the repair step; on the next run a file
whose checksum differs was written by something else, so it becomes canonical
for that appearance. With no state recorded yet nothing is adopted, so a
first run cannot mistake a pinned mode's duplicated files for real choices.

The fish wrapper keeps only its useful part: re-apply the mode and reload so
the change shows at once.

theme-modes/dark.conf is the recovered #0d0f31 (1984). Covered by a new case
in tests/test_theme_mode.sh that writes the theme file with no shell involved.
2026-08-06 04:42:59 +03:00
..
private_tests kitty: capture theme choices however the kitten was launched 2026-08-06 04:42:59 +03:00
theme-modes kitty: capture theme choices however the kitten was launched 2026-08-06 04:42:59 +03:00
themes kitty: use grok's bg_base for the grok theme backgrounds 2026-08-06 03:29:30 +03:00
kitty.app.icns dark kitten icon for kitty 2026-04-06 14:46:04 +03:00
kitty.conf tab strategy + font size 15 2026-07-28 17:17:48 +03:00
private_current-theme.conf Initial commit 2023-04-30 01:21:51 +03:00
private_executable_apply-theme-mode.sh kitty: capture theme choices however the kitten was launched 2026-08-06 04:42:59 +03:00
private_executable_repair-auto-themes.sh fix(kitty): read file permissions correctly where stat is GNU 2026-08-06 02:39:49 +03:00
symlink_theme.conf.tmpl template symlinks for portability, remove karabiner debug rule 2026-03-02 19:25:40 +03:00
tab_bar.py fix(kitty): restore per-host tab colors in the custom tab bar 2026-08-06 01:31:40 +03:00