設定 — Liu Terminal

Liu Terminalの設定。JSON設定ファイルでテーマ、キーバインド、フォント、設定をカスタマイズします。

config.jsonは ~/.config/Liu/config.json にあります。キーはフラットなトップレベルの文字列と数値です(ネストされたオブジェクトではありません)。Liuは起動時に読み込み、ディスク上のファイルが変更されると自動的に再読み込みします。不明なキーは無視されます。

ファイルレイアウト

~/.config/Liu/
├── config.json        # メインアプリ設定
├── keybindings.json   # カスタムキーバインド(キーバインドページを参照)
├── known_hosts        # OpenSSH形式の既知のホスト
├── vault.db           # AES-256-GCM暗号化SQLite保管庫(PBKDF2鍵導出)
└── themes/
    ├── my-theme.json
    └── ...

トップレベルフィールド

theme string "Liu"

アクティブなテーマ名。18の内蔵テーマのいずれか、または ~/.config/Liu/themes/ のJSONと一致する必要があります。

font_path string "JetBrainsMono-Regular.ttf"

プライマリフォントファイル。ファイル名のみの場合は同梱のfontsディレクトリから解決され、絶対パスも使用できます。

font_size number 16

DPIスケーリング前のポイントサイズ。

enable_ligatures boolean true

プログラミング用リガチャーシェーピングの切り替え。

cursor_style number 0

0 = block · 1 = underline · 2 = bar

cursor_blink boolean true

フォーカスされたペインでのみ点滅。

scrollback number 1000

ペインあたりの行数(0–20000にクランプ)。メモリはcols × scrollbackで増加します。

vault_auto_lock_minutes number 15

N分間のアイドル後に自動ロック (0 = 手動ロックのみ)。

quake_mode boolean false

Quakeスタイルのスライドダウンウィンドウを有効化(quake_hotkeyが必要)。

quake_hotkey string "Ctrl+`"

quake_modeがtrueのときのグローバルホットキー文字列。

その他の対応キー

上の表はよく編集する値を示しています。ローダーは次のフラットなトップレベルグループにも対応します:

  • 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.

style_tab_gap、style_sidebar_min_width、style_terminal_paddingなどのスタイルキーもconfig.jsonに保存されます。ツールバーの高さとタブ幅はコンパイル時のレイアウト定数で、設定キーではありません。

例

{
  "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+`"
}

タブ数はウィンドウあたり32にハードキャップされています(src/ui/ui.hのMAX_TABS)— ここでは設定できません。GPUバックエンドはコンパイル時に選択されます(macOSはMetal、その他はOpenGL)。scrollbackなどの数値フィールドはロード時に安全な範囲にクランプされます。

戻る はじめに ↺

ドキュメント

はじめに

ガイド

リファレンス

他の言語

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