Co-authored-by: Mike Duminy <4092035+mikeduminy@users.noreply.github.com>
36 lines
801 B
Markdown
36 lines
801 B
Markdown
# `SetWindowLevel`
|
|
|
|
{{since('nightly')}}
|
|
|
|
Set window level specified by the argument value. eg: `AlwaysOnTop` keeps the current window on top of other windows.
|
|
|
|
Accepted values:
|
|
|
|
* `"AlwaysOnBottom"`
|
|
* `"Normal"` (this is the default)
|
|
* `"AlwaysOnTop"`
|
|
|
|
```lua
|
|
config.keys = {
|
|
{
|
|
key = '[',
|
|
mods = 'CMD',
|
|
action = wezterm.action.SetWindowLevel("AlwaysOnBottom")
|
|
},
|
|
{
|
|
key = '0',
|
|
mods = 'CMD|SHIFT',
|
|
action = wezterm.action.SetWindowLevel("Normal")
|
|
},
|
|
{
|
|
key = ']',
|
|
mods = 'CMD',
|
|
action = wezterm.action.SetWindowLevel("AlwaysOnTop")
|
|
},
|
|
}
|
|
```
|
|
|
|
> Note:
|
|
> This functionality is currently only implemented on macOS.
|
|
> The assigned values for window level will have no effect on other operating systems.
|