From 586e1c75e73d0f9f43feaf66009dd96109f32679 Mon Sep 17 00:00:00 2001 From: hl-valdemar Date: Thu, 22 Oct 2026 15:51:40 +0200 Subject: [PATCH] docs: use TOML for Conjure configuration --- README.md | 8 ++++---- main_test.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b524886..2e63c1f 100644 --- a/README.md +++ b/README.md @@ -123,13 +123,13 @@ Configure OMP to use `tinty-current` where required. The `apply-apps` flow writes `$XDG_CONFIG_HOME/conjure/theme.json`, falling back to `~/.config/conjure/theme.json` when `XDG_CONFIG_HOME` is unset, empty, or relative. The generated JSON contains seven opaque colors: `background`, `text`, `secondaryText`, `accent`, `glow`, `keyBackground`, and `error`, using Tinty semantic UI colors with Base16/Base24 or tinted8 palette fallbacks. -Opt in by adding this to `conjure/config.json` in the same configuration directory: +Opt in by adding this to `conjure/config.toml` in the same configuration directory: -```json -{"theme":"tint"} +```toml +theme = "tint" ``` -The wrapper never changes `config.json`. Optional entries in its `colors` object override generated colors. Conjure reads configuration only at launch: restart Conjure after applying a theme or editing its configuration. The wrapper does not signal, reload, restart, or notify Conjure. +The wrapper never changes `config.toml`. Optional entries in its `[colors]` table override generated colors. Only the machine-generated `theme.json` uses JSON; edit the TOML configuration instead. Conjure reads configuration only at launch: restart Conjure after applying a theme or editing its configuration. The wrapper does not signal, reload, restart, or notify Conjure. ## Usage diff --git a/main_test.go b/main_test.go index 07dcdcf..0b06df0 100644 --- a/main_test.go +++ b/main_test.go @@ -181,11 +181,11 @@ esac if err := os.WriteFile(zed, []byte(`{"name":"old","themes":[{"name":"old"}]}`), 0o644); err != nil { t.Fatal(err) } - conjureConfig := filepath.Join(tmp, "xdg", "conjure", "config.json") + conjureConfig := filepath.Join(tmp, "xdg", "conjure", "config.toml") if err := os.MkdirAll(filepath.Dir(conjureConfig), 0o755); err != nil { t.Fatal(err) } - const userConfig = `{"theme":"tint","colors":{"accent":"#abcdef"}}` + const userConfig = "theme = \"tint\"\n\n[colors]\naccent = \"#abcdef\"\n" if err := os.WriteFile(conjureConfig, []byte(userConfig), 0o644); err != nil { t.Fatal(err) }