-
-
Notifications
You must be signed in to change notification settings - Fork 6
Features System
coe0718 edited this page May 23, 2026
·
3 revisions
Query system status, power information, and control system functions.
deskbrid system infoResponse:
{
"type": "response",
"status": "ok",
"data": {
"hostname": "mycomputer",
"os": "linux",
"desktop": "gnome",
"shell": "/bin/bash",
"uptime": 86400,
"load_avg": [0.5, 0.3, 0.2]
}
}Protocol:
{"action": "system.info"}deskbrid system capabilitiesResponse:
{
"type": "response",
"status": "ok",
"data": {
"screenshot": true,
"ocr": true,
"clipboard": true,
"input": true,
"notifications": true,
"mpris": true
}
}Protocol:
{"action": "system.capabilities"}Check system health and diagnose issues:
deskbrid system healthResponse:
{
"type": "response",
"status": "ok",
"data": {
"healthy": true,
"checks": [
{"name": "socket", "status": "ok"},
{"name": "permissions", "status": "ok"},
{"name": "backends", "status": "ok"}
]
}
}Protocol:
{"action": "system.health"}deskbrid system power suspend
deskbrid system power reboot
deskbrid system power shutdownProtocol:
{"action": "system.power", "action": "suspend"}Actions:
-
suspend- Suspend to RAM -
hibernate- Suspend to disk -
reboot- Reboot system -
shutdown- Power off -
lock- Lock screen
deskbrid system batteryResponse:
{
"type": "response",
"status": "ok",
"data": {
"percentage": 85,
"charging": true,
"time_remaining": 3600
}
}Protocol:
{"action": "system.battery"}Check how long the system has been idle:
deskbrid system idleResponse:
{
"type": "response",
"status": "ok",
"data": {
"idle_ms": 300000,
"idle": true
}
}Protocol:
{"action": "system.idle"}Prevent system sleep, screensaver, or session lock:
deskbrid system inhibit suspend --who "backup-script" --why "long-running backup"Response:
{
"type": "response",
"status": "ok",
"data": {
"inhibitor_id": 42
}
}Protocol:
{
"action": "system.inhibit",
"what": "suspend",
"who": "backup-script",
"why": "long-running backup"
}What to inhibit:
-
suspend- Prevent system suspend -
sleep- Prevent system sleep -
idle- Prevent idle activation -
logout- Prevent automatic logout
Modes:
-
block- Hard block (default) -
delay- Delay for a time -
transient- Until next session
deskbrid system release-inhibit 42Protocol:
{"action": "system.release_inhibit", "inhibitor_id": 42}deskbrid system sessionsResponse:
{
"type": "response",
"status": "ok",
"data": [
{
"session_id": "1",
"username": "user",
"seat": "seat0",
"active": true
}
]
}deskbrid system lock-session
deskbrid system lock-session --session 2Protocol:
{"action": "system.lock_session"}deskbrid system switch-user aliceProtocol:
{"action": "system.switch_user", "username": "alice"}Check if an action requires authorization:
deskbrid system check-auth system.powerResponse:
{
"type": "response",
"status": "ok",
"data": {
"authorized": false,
"action_id": "system.power"
}
}Request privilege elevation:
deskbrid system elevate system.power --reason "User requested shutdown"Response:
{
"type": "response",
"status": "ok",
"data": {
"authorized": true
}
}Check if running in a sandbox (Flatpak, Snap):
deskbrid system confinementResponse:
{
"type": "response",
"status": "ok",
"data": {
"confined": true,
"type": "flatpak",
"sandbox": true
}
}Fix common problems:
deskbrid system remediate --check socket
deskbrid system remediate --check permissions --applyProtocol:
{"action": "system.remediate", "check": "socket", "apply": true}Convert pixel coordinates between monitor layouts:
deskbrid system normalize-coords --x 1000 --y 500Protocol:
{"action": "system.normalize_coords", "x": 1000, "y": 500}from deskbrid import Deskbrid
client = Deskbrid()
# Get system status
info = client.info()
print(f"Desktop: {info.desktop}, Uptime: {info.uptime}s")
# Check battery
battery = client.system_battery()
print(f"Battery: {battery['percentage']}%")
# Prevent sleep during long operation
inhibit = client.inhibit_system("suspend", who="backup", why="backup running")
try:
# ... long running task ...
pass
finally:
client.release_inhibit(inhibit["inhibitor_id"])- Accessibility
- Apps
- Audio
- Backlight (LED driver)
- Bluetooth
- Clipboard
- Color Picker
- Desktop Portal
- Desktop Settings
- Files
- Hotkeys
- Input
- Keyboard Layouts
- Media (MPRIS)
- Monitors
- Network
- Notifications
- Print (CUPS)
- Screenshots
- Screen Recording
- Screencast
- Self-Update
- System
- System Tray
- Systemd Units & Timers
- Terminals (PTY)
- Windows & Workspaces