OmarOS CLI¶
OmarOS 通常透過快捷鍵和 OmarOS 選單(Super + Space)來控制。但你也可以透過 omaros CLI 來控制它。當你讓 AI 代理程式和你一起處理自訂或設定時,這特別有幫助。
這個 CLI 可以存取所有透過選單以及其他方式使用的內部工具。在終端機中執行 omaros,你就可以看到所有可用的東西。
它看起來像這樣:
~ ❯ omaros
OmarOS command center
Usage:
omaros <command> [args...]
omaros commands [--all] [--json] [--check]
omaros <group> --help
omaros <group> <command> --help
Common commands:
omaros update Update OmarOS and system packages
omaros theme list List available themes
omaros theme set <name> Apply a theme
omaros font list List available fonts
omaros screenshot Take a screenshot
omaros debug Print debugging information
Groups:
audio Audio input and output controls
bar OmarOS shell bar layout and settings
battery Battery status helpers
bluetooth Bluetooth device controls
branch OmarOS git branch management
branding About and screensaver branding
brightness Display and keyboard brightness
capture Screenshots and screen recording
channel OmarOS release channel management
clipboard Clipboard helpers
cmd Command and shortcut helpers
config System configuration helpers
debug Diagnostics and support logs
...
而你可以深入每一個群組:
~ ❯ omaros capture
Capture commands — Screenshots and screen recording:
omaros capture qr Decode a QR code from a screenshot region
omaros 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
omaros capture screenrecording with webcam Pick a webcam and start a screen recording with it
omaros capture screenshot [smart|region|windows|fullscreen|scroll] [copy|save] Take a screenshot
omaros capture text Extract text from a screenshot region with OCR
omaros capture webcam resize <smaller|larger|reset|small|medium|large> Resize the active webcam recording overlay
每一個指令也都接受 --help,無論你問的是一整個群組(omaros capture --help)還是單一個指令(omaros capture screenshot --help)。
從終端機開啟選單¶
OmarOS 選單也可以用腳本控制,這對你自己的快捷鍵很有用。omaros menu 會在根目錄開啟它,而你可以透過命名直接跳到樹狀結構中的任何一點:omaros menu summon style.theme 會直接前往主題選擇器,omaros menu toggle system 會開啟系統選單,若它已經開啟則再次關閉,而 omaros menu close 會把它收起來。