mirror of
https://github.com/wez/wezterm.git
synced 2024-12-27 15:37:29 +03:00
a6cf13e1e2
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, } ```
14 lines
356 B
TOML
14 lines
356 B
TOML
[package]
|
|
name = "window-funcs"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
config = { path = "../../config" }
|
|
luahelper = { path = "../../luahelper" }
|
|
wezterm-dynamic = { path = "../../wezterm-dynamic" }
|
|
window = {path="../../window"}
|