1
0
Fork 0

wezterm: rename event

This commit is contained in:
Von Random 2023-03-07 19:27:59 +02:00
parent 68e98d314f
commit 1ebbec9028

View file

@ -33,6 +33,7 @@ local custom_colors = {
new_tab_hover = tab_bar_defaults, new_tab_hover = tab_bar_defaults,
} }
} }
local leader_key = { key = 'g', mods = 'CTRL', timeout_milliseconds = 1000 } local leader_key = { key = 'g', mods = 'CTRL', timeout_milliseconds = 1000 }
local keybinds = { local keybinds = {
{ key = 'c', mods = 'META', action = act.Copy }, { key = 'c', mods = 'META', action = act.Copy },
@ -40,7 +41,7 @@ local keybinds = {
-- themes -- themes
{ key = 'f', mods = 'LEADER', action = act.EmitEvent('override-fonts') }, { key = 'f', mods = 'LEADER', action = act.EmitEvent('override-fonts') },
{ key = 't', mods = 'LEADER', action = act.EmitEvent('override-theme') }, { key = 't', mods = 'LEADER', action = act.EmitEvent('override-theme') },
{ key = 'r', mods = 'LEADER', action = act.EmitEvent('reset-overrides') }, { key = 'r', mods = 'LEADER', action = act.EmitEvent('override-reset') },
-- tabs -- tabs
{ key = 'c', mods = 'LEADER', action = act.SpawnTab('DefaultDomain') }, { key = 'c', mods = 'LEADER', action = act.SpawnTab('DefaultDomain') },
{ key = 'n', mods = 'LEADER', action = act.ActivateTabRelative( 1) }, { key = 'n', mods = 'LEADER', action = act.ActivateTabRelative( 1) },
@ -57,7 +58,6 @@ local keybinds = {
{ key = 'Return', mods = 'LEADER', action = act.TogglePaneZoomState }, { key = 'Return', mods = 'LEADER', action = act.TogglePaneZoomState },
{ key = 'Space', mods = 'LEADER', action = act.PaneSelect }, { key = 'Space', mods = 'LEADER', action = act.PaneSelect },
} }
for i = 1, 9 do for i = 1, 9 do
table.insert( table.insert(
keybinds, keybinds,
@ -96,7 +96,7 @@ end
wt.on('override-theme', function(window) toggle_overrides(window, overrides.theme) end) wt.on('override-theme', function(window) toggle_overrides(window, overrides.theme) end)
wt.on('override-fonts', function(window) toggle_overrides(window, overrides.fonts) end) wt.on('override-fonts', function(window) toggle_overrides(window, overrides.fonts) end)
wt.on('reset-overrides', reset_overrides) wt.on('override-reset', reset_overrides)
return { return {
xcursor_theme = 'Adwaita', xcursor_theme = 'Adwaita',