Overview
System actions control macOS settings, apps, volume, dark mode, battery info, Wi-Fi, clipboard, and more.| Category | Actions |
|---|---|
| App Control | open_app, quit_app, open_url, list_apps, get_frontmost_app |
| Window Management | close_window, minimize_window, fullscreen_window |
| System Settings | set_volume, toggle_dark_mode, lock_screen, screenshot, open_settings |
| System Info | get_battery, get_wifi, get_ip_address, get_uptime, get_disk_usage |
| Files & Clipboard | search_files, clipboard_read, clipboard_write |
App Control
open_app
Open an application or website. Automatically detects URLs and uses the appropriate handler.Implementation (src/actions/app_control_actions.cpp:16-33)
Implementation (src/actions/app_control_actions.cpp:16-33)
:// or common TLDs (.com, .org, .io, etc.):src/actions/app_control_actions.cpp:16-33quit_app
Quit a macOS application.Implementation (src/actions/app_control_actions.cpp:59-65)
Implementation (src/actions/app_control_actions.cpp:59-65)
src/actions/app_control_actions.cpp:59-65open_url
Open a URL in the default browser. Similar toopen_app but explicitly for URLs.
https:// if missing)list_apps
List all currently running applications.Implementation (src/actions/app_control_actions.cpp:46-56)
Implementation (src/actions/app_control_actions.cpp:46-56)
src/actions/app_control_actions.cpp:46-56get_frontmost_app
Get the name of the currently active application.Window Management
close_window
Close the frontmost window (Cmd+W).minimize_window
Minimize the frontmost window (Cmd+M).fullscreen_window
Toggle fullscreen for the frontmost window (Ctrl+Cmd+F).System Settings
set_volume
Set system volume (0-100).Implementation (src/actions/system_actions.cpp:19-28)
Implementation (src/actions/system_actions.cpp:19-28)
src/actions/system_actions.cpp:19-28toggle_dark_mode
Toggle between light and dark appearance.Implementation (src/actions/system_actions.cpp:30-36)
Implementation (src/actions/system_actions.cpp:30-36)
src/actions/system_actions.cpp:30-36lock_screen
Lock the screen immediately.Implementation (src/actions/system_actions.cpp:38-45)
Implementation (src/actions/system_actions.cpp:38-45)
pmset displaysleepnow first, then falls back to Cmd+Ctrl+Q keystroke:src/actions/system_actions.cpp:38-45screenshot
Take a screenshot and save to a file./tmp/rcli_screenshot.png)Implementation (src/actions/system_actions.cpp:9-17)
Implementation (src/actions/system_actions.cpp:9-17)
src/actions/system_actions.cpp:9-17open_settings
Open System Settings, optionally to a specific pane.wifi, bluetooth, sound, display, battery, keyboard, privacy, notifications, general, appearance, etc. (see full list in source)Supported Panes (src/actions/system_actions.cpp:70-108)
Supported Panes (src/actions/system_actions.cpp:70-108)
wifi,bluetooth,network,sound,display,batterykeyboard,trackpad,mouse,printersprivacy,security,notifications,focusgeneral,appearance,accessibility,storagesiri,spotlight,passwords,users,iclouddesktop,dock,time machine,sharing,vpn- And more…
src/actions/system_actions.cpp:70-135System Info
get_battery
Get battery percentage and charging status.Implementation (src/actions/system_actions.cpp:47-58)
Implementation (src/actions/system_actions.cpp:47-58)
src/actions/system_actions.cpp:47-58get_wifi
Get the current Wi-Fi network name.Implementation (src/actions/system_actions.cpp:60-68)
Implementation (src/actions/system_actions.cpp:60-68)
src/actions/system_actions.cpp:60-68get_ip_address
Show local and public IP addresses.Implementation (src/actions/system_actions.cpp:153-161)
Implementation (src/actions/system_actions.cpp:153-161)
src/actions/system_actions.cpp:153-161get_uptime
Show how long the system has been running.get_disk_usage
Show disk space usage.Implementation (src/actions/system_actions.cpp:137-143)
Implementation (src/actions/system_actions.cpp:137-143)
src/actions/system_actions.cpp:137-143Files & Clipboard
search_files
Search for files using Spotlight (mdfind).Implementation (src/actions/files_actions.cpp:7-17)
Implementation (src/actions/files_actions.cpp:7-17)
src/actions/files_actions.cpp:7-17clipboard_read
Read text from the clipboard.Implementation (src/actions/clipboard_actions.cpp:7-12)
Implementation (src/actions/clipboard_actions.cpp:7-12)
src/actions/clipboard_actions.cpp:7-12clipboard_write
Copy text to the clipboard.Implementation (src/actions/clipboard_actions.cpp:14-20)
Implementation (src/actions/clipboard_actions.cpp:14-20)
src/actions/clipboard_actions.cpp:14-20Web & Navigation
search_web
Search the web using Google, DuckDuckGo, or Bing.google, duckduckgo, or bing