mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-25 13:14:13 -04:00
feat(ipc): add 'get cursorpos' and 'get option <name>' queries
This commit is contained in:
parent
8e356692f6
commit
fa4f144b9d
5 changed files with 276 additions and 0 deletions
11
mmsg/mmsg.1
11
mmsg/mmsg.1
|
|
@ -21,6 +21,17 @@ All \fBget\fR commands print a single JSON object and then close the connection.
|
|||
\fBget version\fR
|
||||
Return compositor version.
|
||||
.TP
|
||||
\fBget cursorpos\fR
|
||||
Return the global pointer position (\fBx\fR, \fBy\fR) and the monitor under it
|
||||
(\fBnull\fR if over no output).
|
||||
.TP
|
||||
\fBget option \fIname\fR
|
||||
Return the current value of a scalar config option. Numbers are returned as
|
||||
numbers, colors as \fB0xRRGGBBAA\fR strings, bezier curves as 4-element arrays.
|
||||
Values round-trip through \fBdispatch setoption,\fIname\fB,\fIvalue\fR, except
|
||||
the comma-list options \fBcircle_layout\fR and \fBscroller_proportion_preset\fR
|
||||
(readable as arrays, but written via the config file).
|
||||
.TP
|
||||
\fBget keymode\fR
|
||||
Return current keymode.
|
||||
.TP
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue