跳转至

Omarchy CLI

本文译自 The Omarchy Manual — Omarchy CLI,同步自 basecamp/omarchy@ed7bae4。术语以 TERMS.md 为准。

Omarchy 通常通过快捷键和 Omarchy 菜单(Super + Space)操控。但你也可以用 omarchy CLI 控制。当你让 AI Agent 和你一起搞自定义或配置时,这条路径尤其好用。

CLI 能触达菜单内外使用的全部内部工具。在终端里运行 omarchy 即可看到一切可用的东西。

大致长这样:

~ ❯ omarchy
Omarchy command center

Usage:
  omarchy <command> [args...]
  omarchy commands [--all] [--json] [--check]
  omarchy <group> --help
  omarchy <group> <command> --help

Common commands:
  omarchy update              Update Omarchy and system packages
  omarchy theme list          List available themes
  omarchy theme set <name>    Apply a theme
  omarchy font list           List available fonts
  omarchy screenshot          Take a screenshot
  omarchy debug               Print debugging information

Groups:
  agent          AI coding agent usage data
  audio          Audio input and output controls
  bar            Omarchy shell bar layout and settings
  battery        Battery status helpers
  bluetooth      Bluetooth device controls
  branch         Omarchy git branch management
  branding       About and screensaver branding
  brightness     Display and keyboard brightness
  capture        Screenshots and screen recording
  channel        Omarchy release channel management
  clipboard      Clipboard helpers
  cmd            Command and shortcut helpers
  config         System configuration helpers
  debug          Diagnostics and support logs
  ...

每个组都能继续深入:

~ ❯ omarchy capture
Capture commands — Screenshots and screen recording:
  omarchy capture qr                                                                                                                                                                                                       Decode a QR code from a screenshot region
  omarchy capture screenrecording [--fullscreen] [--with-desktop-audio] [--with-microphone-audio] [--with-webcam] [--webcam-device=<device>] [--webcam-size=<small|medium|large>] [--resolution=<size>] [--stop-recording]  Start or stop screen recording
  omarchy capture screenrecording with webcam                                                                                                                                                                              Pick a webcam and start a screen recording with it
  omarchy capture screenshot [smart|region|windows|fullscreen] [slurp|copy|save] [--editor=<name>]                                                                                                                         Take a screenshot
  omarchy capture text                                                                                                                                                                                                     Extract text from a screenshot region with OCR
  omarchy capture webcam resize <smaller|larger|reset|small|medium|large>                                                                                                                                                  Resize the active webcam recording overlay

每条命令也都接受 --help,无论是问一整组(omarchy capture --help)还是问单条命令(omarchy capture screenshot --help)。

从终端打开菜单

Omarchy 菜单同样可以脚本化,对你自己的键位绑定很方便。omarchy menu 在根级打开它;报出名字就能直达树中任意位置:omarchy menu summon style.theme 直达主题选择器,omarchy menu toggle system 打开系统菜单(已开着就再关上),omarchy menu close 收起菜单。