Replies: 2 comments
-
The current theme cannot be exposed as an env var. env vars cannot be
updated in already launched processes. If you want to query whether
kitty is using a light or dark theme, use kitten @ get-colors
|
Beta Was this translation helpful? Give feedback.
-
Thanks! Doing it with get-colors would make the experience fully dynamic and I will not have to discard the current tabs when I make the switch as I do now. I would have to run kitten on every prompt render. The above will work for the prompt theme which need the just the foreground and background colors to change. However for LS_COLORS, I will have to generate a theme based on the colors. vivid can generate LS_COLORS but it requires a theme name. Since the themes I switch between are known, I could do this ahead of time. As I wrote this out, I realise that it is probably better to handle this outside kitty and change the kitty theme via remote control. For completeness, Chromium has Kudos to you on taking terminals in an exciting new direction and thank you for being the 🦆 |
Beta Was this translation helpful? Give feedback.
-
Its more than just the kitty theme. Niggles I've had to hack around:
If the current theme name is exposed an an env variable, it might be enough.
Beta Was this translation helpful? Give feedback.
All reactions