Mimir

Configuration

Mimir reads one JSON file. Settings can be edited in Settings (Ctrl+,; the in-app editor validates before writing) or in any editor - the file is watched, so the running app picks up changes without a restart.

$XDG_CONFIG_HOME/mimir/config.json

mimir --check-config prints the same warnings the Settings view shows, without starting the UI. Unknown keys are ignored and kept, so a newer Mimir never deletes a key it does not understand.

Full shape

{
  "terminal": {
    "shell": "auto",
    "args": ["-l"],
    "prefix": "ctrl+g",
    "scrollbackBytes": 1000000,
    "confirmOnActiveWork": true
  },
  "keyboard": {
    "nextTab": "ctrl+tab",
    "prevTab": "ctrl+shift+tab",
    "newSession": "alt+n",
    "closeSession": "alt+w",
    "copySelection": "alt+c",
    "quit": "alt+q",
    "help": "?",
    "sessionSwitcher": "alt+s",
    "commandPalette": "alt+p",
    "toggleTheme": "alt+t",
    "settings": "ctrl+,",
    "tabSlots": ["alt+1", "alt+2", "alt+3", "alt+4",
                 "alt+5", "alt+6"]
  },
  "browser": {
    "command": "xdg-open",
    "bookmarks": [
      { "title": "ChatGPT", "url": "https://chatgpt.com", "group": "AI" }
    ]
  },
  "editor": { "command": "auto" },
  "notes": { "directory": "auto" },
  "ui": { "targetFps": 30, "theme": "dark", "hintsDismissed": false }
}

Sections

KeyMeaning
terminal.shellauto uses $SHELL, then bash. Any path works.
terminal.argsArguments for new shells. Default is a login shell so PATH is what you expect.
terminal.prefixChord that starts a terminal command (ctrl+g by default).
terminal.scrollbackBytesPer-session history budget.
terminal.confirmOnActiveWorkAsk before closing a pane that still has a running child.
keyboard.*Chords. See Navigation and keys for defaults and conflicts.
keyboard.settingsOpens Settings, which has no permanent top-bar slot.
keyboard.tabSlotsOne chord per top-bar section (six). Extra slots are ignored.
browser.commandExternal opener used by o.
browser.bookmarksOrder is kept. group is free text; entries are grouped in the start screen in order of first appearance.
editor.commandauto resolves $VISUAL, $EDITOR, then nvim, vim, nano.
notes.directoryauto is $XDG_DATA_HOME/mimir/notes. A path may start with ~.
ui.targetFpsRender loop ceiling (10-120).
ui.themeA built-in id or a custom theme id.
ui.hintsDismissedHides first-run hint lines.

Editing in Settings

Settings shows the file exactly as it is on disk, including keys Mimir does not know about. Ctrl+S validates JSON before writing and writes your text, not a re-serialized copy; r reloads after an external edit when there is nothing unsaved. Invalid JSON is never written - the parser's error is shown and the buffer stays dirty. Warnings (a chord that needs the kitty protocol, a missing shell) are shown above the buffer and do not block saving.

Validation rules

  • Chords must parse (modifier+key, one key).
  • tabSlots is padded to the number of top-bar sections (six), so a saved file keeps its chords when the bar changes without being rewritten.
  • Numbers are clamped rather than rejected.
  • Bookmarks missing a title or URL are dropped.

Notes directory

Point notes.directory at an existing folder (Obsidian vault, Nextcloud folder, a repo) and Mimir lists the note file types it knows from it. It does not index nested folders; the directory is the list.