1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 05:12:40 +03:00
wezterm/window/src
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
..
bitmaps revise ligature render / cursor intersection 2022-02-05 10:49:49 -07:00
os lua: add wezterm.window.screens() 2022-07-06 08:35:05 -07:00
configuration.rs remove the config bridge and have window -> config directly 2021-03-23 21:56:57 -07:00
connection.rs lua: add wezterm.window.screens() 2022-07-06 08:35:05 -07:00
egl.rs fix some unused/unread field warnings 2021-12-10 08:18:36 -07:00
lib.rs lua: add wezterm.window.screens() 2022-07-06 08:35:05 -07:00
screen.rs lua: add wezterm.window.screens() 2022-07-06 08:35:05 -07:00
spawn.rs deps: upgrade to mio 0.8 2022-05-04 20:16:41 -07:00