1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 02:25:28 +03:00
wezterm/lua-api-crates
Wez Furlong a6cf13e1e2 lua: add wezterm.window.screens()
Currently implemented on X11 only, this function returns information
about the geometry of the screen(s).

This is taken from the same source of information we use for the
`--position` CLI argument to `wezterm start`.

```
> wezterm.window.screens()
{
    "by_name": {
        "DisplayPort-1": {
            "height": 2160,
            "name": "DisplayPort-1",
            "width": 3840,
            "x": 0,
            "y": 0,
        },
    },
    "main": {
        "height": 2160,
        "name": "DisplayPort-1",
        "width": 3840,
        "x": 0,
        "y": 0,
    },
    "origin_x": 0,
    "origin_y": 0,
    "virtual_height": 2160,
    "virtual_width": 3840,
}
```
2022-07-06 08:35:05 -07:00
..
battery config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
filesystem config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
logging config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
mux lua: add window:mux_window() and pane:mux_window() methods 2022-06-27 20:28:26 -07:00
share-data lua: add wezterm.GLOBAL 2022-06-18 21:31:53 -07:00
spawn-funcs deps: update 2022-06-12 20:17:48 -07:00
ssh-funcs config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
termwiz-funcs config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
window-funcs lua: add wezterm.window.screens() 2022-07-06 08:35:05 -07:00
README.md config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00

The crates in this directory provide modules and functions to wezterm's lua config file and interface.

They are registered into the lua config via env-bootstrap.

It is advantageous to build times to have multiple, smaller, crates.