dotfiles/private_dot_config
Anton Volnuhin addce489b4 kitty: remember the light/dark mode across restarts
kitty gives *-theme.auto.conf priority over everything -- includes and
even --override -- and has no option to stop following the OS. So the
only way to start in a chosen mode is to control what those files
contain. Make them generated:

  themes/{light,dark,no-preference}.conf  canonical, the real themes
  theme-mode                              auto | light | dark
  apply-theme-mode.sh                      writes the three .auto.conf

Under `auto` each appearance keeps its own theme, so kitty follows the
OS as before. Pinned, all three get the pinned theme, so kitty starts in
it whatever the OS says and a config reload no longer resets it.

`theme` now records the mode and reloads instead of calling set-colors,
which is why the setting survives restarts. A bare `theme` records
`auto` rather than pinning when the toggle lands on the macOS
appearance, so nothing is pinned unless it actually differs.

The kitten shim hashes the automatic theme files before running `kitten
themes` and copies whichever changed into themes/, so picking a new
light theme while pinned to dark is kept and applied on the next switch.
Covered by tests/test_theme_mode.sh.

conf.d/kitty_theme.fish is gone: theme-mode is now the source of truth,
so the universal-variable tracker it maintained is redundant.
2026-08-06 01:49:45 +03:00
..
atuin Small combined changes 2026-07-27 20:23:32 +03:00
bat default theme for bat 2024-05-17 23:22:43 +03:00
helix force true color in helix 2024-09-01 00:09:40 +03:00
kitty kitty: remember the light/dark mode across restarts 2026-08-06 01:49:45 +03:00
nvim clipboard fixes for tmux and nvim 2026-04-09 02:21:29 +03:00
private_fish kitty: remember the light/dark mode across restarts 2026-08-06 01:49:45 +03:00
private_karabiner/private_assets/private_complex_modifications restructure repo, fix fish config, remove vendored repos 2026-03-02 19:11:10 +03:00
scripts Modernize Neovim treesitter bootstrap 2026-03-31 01:45:02 +03:00
wezterm kitty: color terminal tabs by ssh/mosh host 2026-05-19 23:08:32 +03:00
karabiner.edn Preserve local Karabiner and Pi preferences 2026-07-27 22:33:34 +03:00