Captures the current mode. The two generated theme files now hold the dark theme because the mode is pinned; themes/light.conf still has the light theme, so `theme light` and `theme auto` restore it.