feat(ipc): add 'get cursorpos' and 'get option <name>' queries

This commit is contained in:
Ernesto Cruz 2026-06-20 00:23:54 +01:00
parent 8e356692f6
commit fa4f144b9d
5 changed files with 276 additions and 0 deletions

View file

@ -24,6 +24,8 @@ description: Control mangowm programmatically using mmsg.
| Command | Description |
| :--- | :--- |
| `get version` | Returns the current version of the compositor. |
| `get cursorpos` | Returns the global pointer position (`x`, `y`) and the monitor under it. |
| `get option <name>` | Returns the current value of a scalar config option. Numbers as numbers, colors as `0xRRGGBBAA` strings, bezier curves as 4-element arrays. |
| `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. |
@ -41,6 +43,7 @@ description: Control mangowm programmatically using mmsg.
mmsg get monitor eDP-1
mmsg get all-clients
mmsg get all-monitors
mmsg get option bordercolor
```
### WATCH (Event Subscription)