feat: add focusing-client watch to mmsg

This commit is contained in:
DreamMaoMao 2026-05-26 10:24:16 +08:00
parent 0428575025
commit c7227f17b2
3 changed files with 56 additions and 0 deletions

View file

@ -27,6 +27,7 @@ description: Control mangowm programmatically using mmsg.
| `get keymode` | Returns the current active keyboard mode (e.g., normal, insert). |
| `get keyboardlayout` | Returns the active XKB layout (abbreviated). |
| `get monitor <name>` | Returns full JSON details for a specific monitor. |
| `get focusing-client` | Returns full JSON details for the client currently in focus. |
| `get client <id>` | Returns full JSON details for a client with the given ID. |
| `get tag <mon> <idx>` | Queries status of a specific tag on a monitor. |
| `get all-clients` | Returns a JSON array of all active clients. |
@ -45,6 +46,7 @@ mmsg get all-monitors
Subscribes the client to real-time updates. When the state changes, the server pushes a new JSON object to the output stream.
* `watch monitor <name>`
* `watch focusing-client`
* `watch client <id>`
* `watch tags <mon_name>`
* `watch all-monitors`