1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-26 14:54:16 +03:00
wezterm/docs/config/lua/keyassignment/ToggleFullScreen.md
Wez Furlong dbc2c85361 add window:toggle_fullscreen()
You can start a window in full screen mode using something like:

```lua
local wezterm = require 'wezterm'

local mux = wezterm.mux

wezterm.on("gui-startup", function()
  local tab, pane, window = mux.spawn_window{}
  window:gui_window():toggle_fullscreen()
end)

return {
}
```

refs: #177
refs: #284
2022-07-06 23:57:32 -07:00

218 B

ToggleFullScreen

Toggles full screen mode for the current window.

local wezterm = require 'wezterm'

return {
  keys = {
    {key="n", mods="SHIFT|CTRL", action=wezterm.action.ToggleFullScreen},
  }
}