1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 15:04:36 +03:00

Update docs/config/lua/keyassignment/SetWindowLevel.md

Co-authored-by: Wez Furlong <wez@wezfurlong.org>
This commit is contained in:
Federico 2023-12-02 18:16:09 +01:00 committed by Wez Furlong
parent 7bc24ebb4d
commit 69f64dbb66

View File

@ -10,24 +10,21 @@ Accepted values:
* `"AlwaysOnTop"` * `"AlwaysOnTop"`
```lua ```lua
local act = wezterm.action
local config = {}
config.keys = { config.keys = {
{ {
key = '[', key = '[',
mods = 'CMD', mods = 'CMD',
action = act.SetWindowLevel("AlwaysOnBottom") action = wezterm.action.SetWindowLevel("AlwaysOnBottom")
}, },
{ {
key = '0', key = '0',
mods = 'CMD|SHIFT', mods = 'CMD|SHIFT',
action = act.SetWindowLevel("Normal") action = wezterm.action.SetWindowLevel("Normal")
}, },
{ {
key = ']', key = ']',
mods = 'CMD', mods = 'CMD',
action = act.SetWindowLevel("AlwaysOnTop") action = wezterm.action.SetWindowLevel("AlwaysOnTop")
}, },
} }
``` ```