diff options
Diffstat (limited to 'sway/sway-ipc.7.scd')
-rw-r--r-- | sway/sway-ipc.7.scd | 55 |
1 files changed, 47 insertions, 8 deletions
diff --git a/sway/sway-ipc.7.scd b/sway/sway-ipc.7.scd index 1b855959..2f697248 100644 --- a/sway/sway-ipc.7.scd +++ b/sway/sway-ipc.7.scd | |||
@@ -213,7 +213,10 @@ following properties: | |||
213 | : Whether this output is active/enabled | 213 | : Whether this output is active/enabled |
214 | |- dpms | 214 | |- dpms |
215 | : boolean | 215 | : boolean |
216 | : Whether this output is on/off (via DPMS) | 216 | : (Deprecated, use _power_ instead) Whether this output is on/off (via DPMS) |
217 | |- power | ||
218 | : boolean | ||
219 | : Whether this output is on/off | ||
217 | |- primary | 220 | |- primary |
218 | : boolean | 221 | : boolean |
219 | : For i3 compatibility, this will be false. It does not make sense in Wayland | 222 | : For i3 compatibility, this will be false. It does not make sense in Wayland |
@@ -294,7 +297,7 @@ following properties: | |||
294 | Retrieve a JSON representation of the tree | 297 | Retrieve a JSON representation of the tree |
295 | 298 | ||
296 | *REPLY*++ | 299 | *REPLY*++ |
297 | An array of object the represent the current tree. Each object represents one | 300 | An array of objects that represent the current tree. Each object represents one |
298 | node and will have the following properties: | 301 | node and will have the following properties: |
299 | 302 | ||
300 | [- *PROPERTY* | 303 | [- *PROPERTY* |
@@ -334,8 +337,9 @@ node and will have the following properties: | |||
334 | this, but borders are included. | 337 | this, but borders are included. |
335 | |- window_rect | 338 | |- window_rect |
336 | : object | 339 | : object |
337 | : The geometry of the contents inside the node. The window decorations are | 340 | : The geometry of the content inside the node. These coordinates are relative |
338 | excluded from this calculation, but borders are included. | 341 | to the node itself. Window decorations and borders are outside the |
342 | _window_rect_ | ||
339 | |- deco_rect | 343 | |- deco_rect |
340 | : object | 344 | : object |
341 | : The geometry of the decorations for the node relative to the parent node | 345 | : The geometry of the decorations for the node relative to the parent node |
@@ -370,8 +374,14 @@ node and will have the following properties: | |||
370 | that can be used as an aid in submitting reproduction steps for bug reports | 374 | that can be used as an aid in submitting reproduction steps for bug reports |
371 | |- fullscreen_mode | 375 | |- fullscreen_mode |
372 | : integer | 376 | : integer |
373 | : (Only containers and views) The fullscreen mode of the node. 0 means none, 1 means | 377 | : (Only containers and views) The fullscreen mode of the node. 0 means none, 1 means |
374 | full workspace, and 2 means global fullscreen | 378 | full workspace, and 2 means global fullscreen |
379 | |- floating | ||
380 | : string | ||
381 | : Floating state of container. Can be either "auto_off" or "user_on" | ||
382 | |- scratchpad_state | ||
383 | : string | ||
384 | : Whether the window is in the scratchpad. Can be either "none" or "fresh" | ||
375 | |- app_id | 385 | |- app_id |
376 | : string | 386 | : string |
377 | : (Only views) For an xdg-shell view, the name of the application, if set. | 387 | : (Only views) For an xdg-shell view, the name of the application, if set. |
@@ -1036,7 +1046,7 @@ An object with a single string property containing the contents of the config | |||
1036 | *Example Reply:* | 1046 | *Example Reply:* |
1037 | ``` | 1047 | ``` |
1038 | { | 1048 | { |
1039 | "config": "set $mod Mod4\nbindsym $mod+q exit\n" | 1049 | "config": "set $mod Mod4\\nbindsym $mod+q exit\\n" |
1040 | } | 1050 | } |
1041 | ``` | 1051 | ``` |
1042 | 1052 | ||
@@ -1131,6 +1141,9 @@ following properties: | |||
1131 | |- xkb_active_layout_index | 1141 | |- xkb_active_layout_index |
1132 | : integer | 1142 | : integer |
1133 | : (Only keyboards) The index of the active keyboard layout in use | 1143 | : (Only keyboards) The index of the active keyboard layout in use |
1144 | |- scroll_factor | ||
1145 | : floating | ||
1146 | : (Only pointers) Multiplier applied on scroll event values. | ||
1134 | |- libinput | 1147 | |- libinput |
1135 | : object | 1148 | : object |
1136 | : (Only libinput devices) An object describing the current device settings. | 1149 | : (Only libinput devices) An object describing the current device settings. |
@@ -1188,9 +1201,16 @@ following properties will be included for devices that support them: | |||
1188 | : int | 1201 | : int |
1189 | : The scroll button to use when _scroll_method_ is _on_button_down_. This | 1202 | : The scroll button to use when _scroll_method_ is _on_button_down_. This |
1190 | will be given as an input event code | 1203 | will be given as an input event code |
1204 | |- scroll_button_lock | ||
1205 | : string | ||
1206 | : Whether scroll button lock is enabled. It can be _enabled_ or _disabled_ | ||
1191 | |- dwt | 1207 | |- dwt |
1192 | : string | 1208 | : string |
1193 | : Whether disable-while-typing is enabled. It can be _enabled_ or _disabled_ | 1209 | : Whether disable-while-typing is enabled. It can be _enabled_ or _disabled_ |
1210 | |- dwtp | ||
1211 | : string | ||
1212 | : Whether disable-while-trackpointing is enabled. It can be _enabled_ or | ||
1213 | _disabled_ | ||
1194 | |- calibration_matrix | 1214 | |- calibration_matrix |
1195 | : array | 1215 | : array |
1196 | : An array of 6 floats representing the calibration matrix for absolute | 1216 | : An array of 6 floats representing the calibration matrix for absolute |
@@ -1230,7 +1250,8 @@ following properties will be included for devices that support them: | |||
1230 | "click_method": "button_areas", | 1250 | "click_method": "button_areas", |
1231 | "middle_emulation": "disabled", | 1251 | "middle_emulation": "disabled", |
1232 | "scroll_method": "edge", | 1252 | "scroll_method": "edge", |
1233 | "dwt": "enabled" | 1253 | "dwt": "enabled", |
1254 | "dwtp": "enabled" | ||
1234 | } | 1255 | } |
1235 | }, | 1256 | }, |
1236 | { | 1257 | { |
@@ -1357,7 +1378,8 @@ one seat. Each object has the following properties: | |||
1357 | "click_method": "button_areas", | 1378 | "click_method": "button_areas", |
1358 | "middle_emulation": "disabled", | 1379 | "middle_emulation": "disabled", |
1359 | "scroll_method": "edge", | 1380 | "scroll_method": "edge", |
1360 | "dwt": "enabled" | 1381 | "dwt": "enabled", |
1382 | "dwtp": "enabled" | ||
1361 | } | 1383 | } |
1362 | }, | 1384 | }, |
1363 | { | 1385 | { |
@@ -1433,6 +1455,9 @@ available: | |||
1433 | : workspace | 1455 | : workspace |
1434 | :[ Sent whenever an event involving a workspace occurs such as initialization | 1456 | :[ Sent whenever an event involving a workspace occurs such as initialization |
1435 | of a new workspace or a different workspace gains focus | 1457 | of a new workspace or a different workspace gains focus |
1458 | |- 0x80000001 | ||
1459 | : output | ||
1460 | : Sent when outputs are updated | ||
1436 | |- 0x80000002 | 1461 | |- 0x80000002 |
1437 | : mode | 1462 | : mode |
1438 | : Sent whenever the binding mode changes | 1463 | : Sent whenever the binding mode changes |
@@ -1553,6 +1578,20 @@ The following change types are currently available: | |||
1553 | } | 1578 | } |
1554 | ``` | 1579 | ``` |
1555 | 1580 | ||
1581 | ## 0x80000001. OUTPUT | ||
1582 | |||
1583 | Sent whenever an output is added, removed, or its configuration is changed. | ||
1584 | The event is a single object with the property _change_, which is a string | ||
1585 | containing the reason for the change. Currently, the only value for _change_ is | ||
1586 | _unspecified_. | ||
1587 | |||
1588 | *Example Event:* | ||
1589 | ``` | ||
1590 | { | ||
1591 | "change": "unspecified" | ||
1592 | } | ||
1593 | ``` | ||
1594 | |||
1556 | ## 0x80000002. MODE | 1595 | ## 0x80000002. MODE |
1557 | 1596 | ||
1558 | Sent whenever the binding mode changes. The event consists of a single object | 1597 | Sent whenever the binding mode changes. The event consists of a single object |