Aller au contenu

CLI OmarOS

OmarOS se contrôle habituellement via les raccourcis clavier et le menu OmarOS (Super + Space). Mais vous pouvez aussi le contrôler via la CLI omaros. C'est particulièrement utile lorsque vous faites travailler un agent IA avec vous sur la personnalisation ou la configuration.

La CLI a accès à tous les outils internes utilisés à la fois via le menu et autrement. Vous pouvez voir tout ce qui est disponible en exécutant omaros dans le terminal.

Cela ressemble à ceci :

~ ❯ 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
  ...

Et vous pouvez approfondir chaque groupe :

~ ❯ 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

Chaque commande accepte aussi --help, que vous interrogiez un groupe entier (omaros capture --help) ou une seule commande (omaros capture screenshot --help).

Ouvrir le menu depuis le terminal

Le menu OmarOS est également scriptable, ce qui est pratique pour vos propres raccourcis. omaros menu l'ouvre à la racine, et vous pouvez sauter directement à n'importe quel point de l'arborescence en le nommant : omaros menu summon style.theme va directement au sélecteur de thème, omaros menu toggle system ouvre le menu système et le referme s'il est déjà ouvert, et omaros menu close le range.