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")
},
}
```
@@ -0,0 +1,17 @@
# `ToggleAlwaysOnBottom`
Toggles the window to remain behind all other windows.
```lua
local wezterm = require 'wezterm'
config.keys = {
{
key = ']',
mods = 'CMD|SHIFT',
action = wezterm.action.ToggleAlwaysOnBottom,
},
}
```
@@ -0,0 +1,18 @@
# `ToggleAlwaysOnTop`
Toggles the window between floating and non-floating states to stay on top of other windows.
```lua
local wezterm = require 'wezterm'
local config = {}
config.keys = {
{
key = ']',
mods = 'CMD|SHIFT',
action = wezterm.action.ToggleAlwaysOnTop,
},
}
```
@@ -1,17 +0,0 @@
# `ToggleFloatingWindow`
Toggles floating window state on macos
```lua
local wezterm = require 'wezterm'
config.keys = {
{
key = 'n',
mods = 'SHIFT|CTRL',
action = wezterm.action.ToggleFloatingWindow,
},
}
```