-
-
Notifications
You must be signed in to change notification settings - Fork 6
Features Network
coe0718 edited this page May 31, 2026
·
4 revisions
Query network status and WiFi information.
deskbrid network statusResponse:
{
"type": "response",
"status": "ok",
"data": {
"connected": true,
"interface": "wlan0",
"type": "wifi",
"ssid": "MyNetwork",
"signal": 85
}
}Protocol:
{"type": "network.status"}deskbrid network wifiResponse:
{
"type": "response",
"status": "ok",
"data": [
{"ssid": "MyNetwork", "signal": 85, "secured": true},
{"ssid": "GuestNetwork", "signal": 42, "secured": false}
]
}Protocol:
{"type": "network.wifi"}deskbrid network connectionsResponse:
{
"type": "response",
"status": "ok",
"data": [
{
"name": "MyHomeWiFi",
"type": "wifi",
"device": "wlan0",
"state": "activated",
"ip4": "192.168.1.100",
"ip6": "fe80::abcd:ef01:2345:6789"
},
{
"name": "Ethernet",
"type": "ethernet",
"device": "eth0",
"state": "deactivated"
}
]
}Protocol:
{"type": "network.connections.list"}deskbrid network profilesResponse:
{
"type": "response",
"status": "ok",
"data": [
{
"name": "MyHomeWiFi",
"type": "wifi",
"autoconnect": true
},
{
"name": "WorkVPN",
"type": "vpn",
"autoconnect": false
}
]
}Protocol:
{"type": "network.connections.profiles"}deskbrid network hotspot start --ssid MyHotspot --password secret123Protocol:
{"type": "network.hotspot.start", "ssid": "MyHotspot", "password": "secret123"}deskbrid network hotspot stopProtocol:
{"type": "network.hotspot.stop"}deskbrid network wifi enable
deskbrid network wifi disableProtocol:
{"type": "network.wifi.enable", "enabled": true}{"type": "network.wifi.enable", "enabled": false}deskbrid network dns set --dns 8.8.8.8 --dns 8.8.4.4Protocol:
{"type": "network.dns.set", "dns": ["8.8.8.8", "8.8.4.4"]}deskbrid network dns resetProtocol:
{"type": "network.dns.reset"}deskbrid network vpn connect --profile WorkVPN
deskbrid network vpn disconnect --profile WorkVPNProtocol:
{"type": "network.vpn.connect", "profile_name": "WorkVPN"}{"type": "network.vpn.disconnect", "profile_name": "WorkVPN"}deskbrid network wwan enable
deskbrid network wwan disableProtocol:
{"type": "network.wwan.enable", "enabled": true}{"type": "network.wwan.enable", "enabled": false}Deskbrid can also listen on a TCP port for remote connections (requires --tcp-port and --tcp-token flags when starting the daemon).
deskbrid network tcp infoResponse:
{
"type": "response",
"status": "ok",
"data": {
"listening": true,
"port": 18796,
"token_set": true
}
}Protocol:
{"type": "network.tcp.info"}from deskbrid import Deskbrid
client = Deskbrid()
status = client.network_status()
if status["connected"]:
print(f"Connected to {status['ssid']}")
else:
print("No network connection")
wifi = client.network_wifi()
for network in wifi:
print(f"{network['ssid']}: {network['signal']}%")
connections = client.network_connections_list()
for conn in connections:
print(f"{conn['name']} ({conn['type']}): {conn['state']}")
profiles = client.network_connections_profiles()
for profile in profiles:
print(f"{profile['name']} ({profile['type']}): autoconnect={profile['autoconnect']}")- 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