Skip to content

core: Config system (TOML loading + defaults) #2

Closed

Description

@unhappychoice

Load user configuration from TOML file.

  • Path: ~/.config/splashboard/config.toml
  • Sensible defaults so the tool works without any config
  • serde + toml crate

Schema (3-axis model)

Config separately declares fetcher (data source) / render (draw type) / layout (positioning — #3).

[general]
wait_for_fresh = false   # false = cache-first, true = await first fetch (see #4)

[[widget]]
id = "git"
fetcher = "git"
render = "text"
format = "{branch}{dirty_marker}"
refresh_interval = 30

[[row]]
ratio = 1
[[row.child]]
widget = "git"

Depends on

Metadata

Metadata

Assignees

No one assigned

    Labels

    core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions