1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-02 11:03:49 +03:00
wezterm/docs/config/lua/wezterm.mux
Wez Furlong 2b298f5f96
mux: pass gui window position through from new mux window
Threads through a GuiPosition from mux window creation to allow it to be
used when the corresponding gui window is created.

SpawnCommand now has an optional position field to use for that purpose.

```lua
wezterm.mux.spawn_window {
  position = {
    x = 10,
    y = 300,
    -- Optional origin to use for x and y.
    -- Possible values:
    -- * "ScreenCoordinateSystem" (this is the default)
    -- * "MainScreen" (the primary or main screen)
    -- * "ActiveScreen" (whichever screen hosts the active/focused window)
    -- * {Named="HDMI-1"} - uses a screen by name. See wezterm.gui.screens()
    -- origin = "ScreenCoordinateSystem"
  },
}
```

refs: https://github.com/wez/wezterm/issues/2976
2023-02-05 21:43:37 -07:00
..
all_domains.md expose some mux domain stuff to lua 2023-01-09 08:38:05 -07:00
all_windows.md docs: 20220807-113146-c2fee766 release 2022-08-07 13:26:59 -07:00
get_active_workspace.md docs: update for release 2022-06-24 14:59:19 -07:00
get_domain.md expose some mux domain stuff to lua 2023-01-09 08:38:05 -07:00
get_pane.md docs: update for MuxPane/Pane merger 2022-09-11 07:21:54 -07:00
get_tab.md add MuxTab:set_zoomed and SetPaneZoomState keyassignment 2022-07-19 05:52:38 -07:00
get_window.md docs: split MuxWindow.md into multiple pages 2022-07-06 16:02:29 -07:00
get_workspace_names.md docs: update for release 2022-06-24 14:59:19 -07:00
index.markdown docs: update for release 2022-06-24 14:59:19 -07:00
set_active_workspace.md docs: update for release 2022-06-24 14:59:19 -07:00
set_default_domain.md expose some mux domain stuff to lua 2023-01-09 08:38:05 -07:00
spawn_window.md mux: pass gui window position through from new mux window 2023-02-05 21:43:37 -07:00