Konfiguration — Liu Terminal

Liu Terminal-Konfiguration. Passen Sie Themes, Tastaturbefehle, Schriftarten und Einstellungen über eine JSON-Konfigurationsdatei an.

config.json befindet sich unter ~/.config/Liu/config.json. Schlüssel sind flache Top-Level-Strings und Zahlen (keine verschachtelten Objekte). Liu lädt es beim Start und lädt automatisch neu, wenn sich die Datei auf der Festplatte ändert. Unbekannte Schlüssel werden ignoriert.

Dateianordnung

~/.config/Liu/
├── config.json        # Haupt-App-Einstellungen
├── keybindings.json   # benutzerdefinierte Tastenkombinationen (siehe Keybindings-Seite)
├── known_hosts        # Bekannte Hosts im OpenSSH-Format
├── vault.db           # AES-256-GCM verschlüsselter SQLite-Tresor (PBKDF2-Ableitung)
└── themes/
    ├── my-theme.json
    └── ...

Felder der obersten Ebene

theme string "Liu"

Name des aktiven Themes. Muss einem der 18 integrierten oder einer JSON-Datei in ~/.config/Liu/themes/ entsprechen.

font_path string "JetBrainsMono-Regular.ttf"

Primäre Schriftdatei. Reine Dateinamen werden gegen das mitgelieferte fonts-Verzeichnis aufgelöst; absolute Pfade funktionieren ebenfalls.

font_size number 16

Punktgröße vor der DPI-Skalierung.

enable_ligatures boolean true

Umschalten der Programmierung-Ligatur-Formung.

cursor_style number 0

0 = block · 1 = underline · 2 = bar

cursor_blink boolean true

Blinkt nur in fokussierten Bereichen.

scrollback number 1000

Zeilen pro Bereich (begrenzt 0–20000). Speicher wächst mit cols × scrollback.

vault_auto_lock_minutes number 15

Automatische Sperre nach N Minuten Inaktivität (0 = nur manuelle Sperre).

quake_mode boolean false

Quake-ähnliches Heruntergleiten aktivieren (benötigt quake_hotkey).

quake_hotkey string "Ctrl+`"

Globaler Hotkey-String wenn quake_mode true ist.

Weitere unterstützte Schlüssel

Die obige Tabelle zeigt die am häufigsten bearbeiteten Werte. Der Loader akzeptiert außerdem diese flachen Top-Level-Gruppen:

  • line_height, font_normalize, font_smoothing, font_weight and fallback_font_0 … fallback_font_3 control font metrics and fallback fonts. Defaults: 1.0, true, true, 0; font weight is clamped to 0–2.
  • tab_sleep_idle_minutes defaults to 20; confirm_close_agent, bold_is_bright, show_scrollbar, show_tab_bar, show_toolbar_icons and show_git_badge default to true. bidi_enabled, hide_title_bar and show_status_bar default to false.
  • sidebar_width defaults to 240 and is clamped to 160–500; opacity defaults to 1.0 and is clamped to 0.2–1.0; padding defaults to 2.
  • browser_enabled, browser_last_url and browser_recent_0 … browser_recent_7 store browser state. The in-app browser is available on the macOS WebKit build.
  • option_as_alt accepts off, left, right or both; prompt_recall accepts off, badge or always. cursor_animate defaults to false, notify_command_threshold to 10, and allow_osc52_write to false.
  • background_image, notes_vault_path, background_mode (stretch/center/tile/fill), background_opacity, background_blur and background_blur_radius configure the image layer. The defaults are empty path, empty path, fill, 0.3, false and 10.
  • quake_mode, quake_hotkey, quake_height_ratio and quake_animation_duration default to false, Ctrl+`, 0.4 and 0.2; their numeric ranges are 0.1–1.0 and 0–10.
  • profile_count plus profile_<index>_name, _font_path, _font_size, _theme, _cursor_style and _opacity define up to 16 profiles. Translate-on-Tab and Voice keys are documented on their dedicated pages.
  • site_count plus site_<index>_name, _path, _command and _port define up to 32 Site Manager entries; runtime process state is not persisted.

Stilschlüssel wie style_tab_gap, style_sidebar_min_width und style_terminal_padding werden ebenfalls in config.json gespeichert. Toolbar-Höhe und Tab-Breite sind Layout-Konstanten zur Kompilierzeit.

Beispiel

{
  "theme": "Tokyo Night",
  "font_path": "JetBrainsMono-Regular.ttf",
  "font_size": 14,
  "enable_ligatures": true,
  "cursor_style": 2,
  "cursor_blink": false,
  "scrollback": 5000,
  "vault_auto_lock_minutes": 30,
  "quake_mode": true,
  "quake_hotkey": "Ctrl+`"
}

Die Tab-Anzahl ist auf 32 pro Fenster fest begrenzt (MAX_TABS in src/ui/ui.h) — hier nicht konfigurierbar. Das GPU-Backend wird zur Kompilierzeit gewählt (Metal auf macOS, OpenGL anderswo). Numerische Felder wie scrollback werden beim Laden auf sichere Bereiche begrenzt.

Zurück zu Einführung ↺

Dokumentation

Erste Schritte

Anleitungen

Referenz

Andere Sprachen

English · Türkçe · 简体中文 · 한국어 · Español · Italiano · Français · 日本語 · العربية