aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-04-21 10:19:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-04-26 12:43:42 +0000
commitbc5b71666867c00e7dc850740bb5cc2a13a9c2a9 (patch)
treeb37c0637d15f8750857b97362038d7b25dcec38b /config.h
parentcsi: implement private mode 2031 (dark/light mode detection) (diff)
config: add initial-color-theme=1|2
This option selects which color theme to use by default. I.e. at startup, and after a reset. This is useful with combined theme files, where a single file defines e.g. both a dark and light version of the theme.
Diffstat (limited to 'config.h')
-rw-r--r--config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h b/config.h
index 8954b270..cbdf11b1 100644
--- a/config.h
+++ b/config.h
@@ -190,6 +190,11 @@ struct color_theme {
} use_custom;
};
+enum which_color_theme {
+ COLOR_THEME1,
+ COLOR_THEME2,
+};
+
struct config {
char *term;
char *shell;
@@ -305,6 +310,7 @@ struct config {
struct color_theme colors;
struct color_theme colors2;
+ enum which_color_theme initial_color_theme;
struct {
enum cursor_style style;