docs: added window level options

This commit is contained in:
rawnly authored and Wez Furlong committed 2024-01-21 14:06:01 -07:00
1 parent 163606afec
commit 2795cf0c4a
4 files changed
+63 -17

No files matched your search

@@ -0,0 +1,28 @@
# `SetWindowLevel`
Set window level sepcified by the argument value. eg: `AlwaysOnTop` keeps the current window on top of other windows.
Accepted values: `AlwaysOnBottom` | `Normal` | `AlwaysOnTop`
```lua
local act = wezterm.action
local config = {}
config.keys = {
{
key = '[',
mods = 'CMD',
action = act.SetWindowLevel("AlwaysOnBottom")
},
{
key = '0',
mods = 'CMD|SHIFT',
action = act.SetWindowLevel("Normal")
},
{
key = ']',
mods = 'CMD',
action = act.SetWindowLevel("AlwaysOnTop")
},
}
```