wezterm: add keybindings for workspaces and change leader key
This commit is contained in:
parent
7c8834990d
commit
307d569fcc
1 changed files with 13 additions and 1 deletions
|
@ -1,6 +1,10 @@
|
||||||
local wezterm = require 'wezterm'
|
local wezterm = require 'wezterm'
|
||||||
local act = wezterm.action
|
local act = wezterm.action
|
||||||
|
|
||||||
|
wezterm.on('update-right-status', function(window, pane)
|
||||||
|
window:set_right_status(window:active_workspace())
|
||||||
|
end)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
check_for_updates = false,
|
check_for_updates = false,
|
||||||
color_scheme = "tokyonight",
|
color_scheme = "tokyonight",
|
||||||
|
@ -8,7 +12,7 @@ return {
|
||||||
font_size = 16,
|
font_size = 16,
|
||||||
dpi = 144,
|
dpi = 144,
|
||||||
enable_kitty_keyboard = true,
|
enable_kitty_keyboard = true,
|
||||||
leader = { key="b", mods="CTRL", timeout_milliseconds = 1000 },
|
leader = { key="b", mods="SUPER|CTRL", timeout_milliseconds = 1000 },
|
||||||
disable_default_key_bindings = true,
|
disable_default_key_bindings = true,
|
||||||
default_prog = { "/Users/salar/.nix-profile/bin/fish" },
|
default_prog = { "/Users/salar/.nix-profile/bin/fish" },
|
||||||
keys = {
|
keys = {
|
||||||
|
@ -41,6 +45,14 @@ return {
|
||||||
{ key = 'n', mods = 'SUPER', action = act.SpawnWindow },
|
{ key = 'n', mods = 'SUPER', action = act.SpawnWindow },
|
||||||
{ key = 't', mods = 'SUPER', action = act.SpawnTab 'CurrentPaneDomain' },
|
{ key = 't', mods = 'SUPER', action = act.SpawnTab 'CurrentPaneDomain' },
|
||||||
{ key = 'q', mods = 'SUPER', action = act.QuitApplication },
|
{ key = 'q', mods = 'SUPER', action = act.QuitApplication },
|
||||||
|
{ key = 'i', mods = 'CTRL|SHIFT', action = act.SwitchToWorkspace },
|
||||||
|
{
|
||||||
|
key = '9',
|
||||||
|
mods = 'ALT',
|
||||||
|
action = act.ShowLauncherArgs {
|
||||||
|
flags = 'FUZZY|WORKSPACES',
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue