Skip to content

Configuration

Moonswing reads one TOML file:

~/.config/moonswing/config.toml # or $XDG_CONFIG_HOME/moonswing/config.toml
  • If the file is missing, the shell writes a default one on first start.
  • A wrongly typed value costs only that key: the default is used instead. Numbers out of range are clamped.
  • A TOML syntax error costs the whole file: the shell logs the error to stderr and runs on defaults.
  • Changes made in Settings, in Moonsettings or from a right-click menu apply live and are written back to the file. Settings rewrites the whole file, so comments are not kept.
  • The shell follows the file, so an edit by hand applies as soon as it is saved, as an edit in Settings does. A file with a TOML syntax error is ignored until it is fixed — and a change made in Settings meanwhile rewrites it, so fix it first.