Skip to main content
Monocle loads settings from JSON config files at startup. You can maintain a global config for personal preferences and a project config for repository-specific settings.
Config is read once when the background engine (monocle serve) starts, not each time the TUI launches. Because the engine is long-lived and shared across TUI sessions, editing a config file and relaunching monocle alone will not pick up the change. To apply config changes, run monocle stop and then start monocle again — this restarts the engine and reloads the config.

File locations

Monocle loads config files in this order, with the project config taking precedence over the global one:
  1. Global: ~/.config/monocle/config.json (or $XDG_CONFIG_HOME/monocle/config.json)
  2. Project: .monocle/config.json in your working directory
Create either or both files — you only need to include the settings you want to override.

Example config

Settings

Toggle keybindings (T, t, w, f) change settings for the current session only. Edit the config file to persist your preferences.