-
-
Notifications
You must be signed in to change notification settings - Fork 6
Features Clipboard
coe0718 edited this page May 31, 2026
·
4 revisions
Read and write clipboard content, plus clipboard history.
deskbrid clipboard readResponse:
{
"type": "response",
"status": "ok",
"data": {
"type": "text",
"text": "Hello, world!"
}
}Protocol:
{"type": "clipboard.read"}Python:
from deskbrid import Deskbrid
client = Deskbrid()
content = client.clipboard_read()
print(content.text) # "Hello, world!"deskbrid clipboard write "Hello from Deskbrid"Protocol:
{"type": "clipboard.write", "text": "Hello from Deskbrid"}Python:
client.clipboard_write("New clipboard content")Keep track of clipboard changes over time.
Note: History requires the GNOME Shell extension or Hyprland autostart hook and is persisted in an SQLite database at ~/.local/share/deskbrid/deskbrid.db.
deskbrid clipboard history
deskbrid clipboard history --limit 10
deskbrid clipboard history --query "error"Protocol:
{"type": "clipboard.history", "limit": 10, "query": "error"}Response:
{
"type": "response",
"status": "ok",
"data": {
"entries": [
{
"id": 1,
"text": "fixed the bug",
"timestamp": "2024-01-15T10:30:00Z",
"source": "terminal"
},
{
"id": 2,
"text": "git commit -m 'fix'",
"timestamp": "2024-01-15T10:25:00Z",
"source": "browser"
}
]
}
}deskbrid clipboard history clearProtocol:
{"type": "clipboard.history.clear"}Python:
# Get recent history
entries = client.clipboard_history(limit=20)
# Search history
error_entries = client.clipboard_history(query="error")
# Clear history
result = client.clipboard_history_clear()Clipboard history requires the GNOME Shell extension:
deskbrid setup # Enables the extension automaticallyAdd to your Hyprland config:
exec-once = systemctl --user start deskbrid-historyOr enable clipboard history listener:
systemctl --user enable --now deskbrid-history.service→ {"type": "clipboard.read"}
← {"type": "response", "status": "ok", "data": {"text": "def hello():"}}
→ {"type": "clipboard.write", "text": "def hello():\\n print('world')"}
← {"type": "response", "status": "ok"}- 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