mirror of
https://codeberg.org/mtxyz/nixconf.git
synced 2024-11-09 18:12:02 +00:00
34 lines
2.2 KiB
Lua
34 lines
2.2 KiB
Lua
local wezterm = require 'wezterm'
|
|
|
|
return {
|
|
font = wezterm.font("FantasqueSansM Nerd Font"),
|
|
font_size = 10.0,
|
|
hide_mouse_cursor_when_typing = true,
|
|
initial_cols = 120,
|
|
initial_rows = 40,
|
|
color_scheme = 'Tokyo Night Moon',
|
|
keys = {
|
|
{ key = 'P', mods = 'ALT', action = wezterm.action.ActivateCommandPalette },
|
|
{ key = 'Enter', mods = 'ALT|SHIFT', action = wezterm.action.SpawnTab 'CurrentPaneDomain' },
|
|
{ key = 'Q', mods = 'ALT', action = wezterm.action.CloseCurrentPane{confirm=false} },
|
|
{ key = 'D', mods = 'ALT', action = wezterm.action.SplitVertical{domain='CurrentPaneDomain'} },
|
|
{ key = 'R', mods = 'ALT', action = wezterm.action.SplitHorizontal{domain='CurrentPaneDomain'} },
|
|
{ key = 'F', mods = 'ALT', action = wezterm.action.ToggleFullScreen },
|
|
{ key = 'C', mods = 'CTRL', action = wezterm.action.CopyTo 'Clipboard' },
|
|
{ key = 'V', mods = 'CTRL', action = wezterm.action.PasteFrom 'Clipboard' },
|
|
{ key = 'PageUp', mods = 'SHIFT', action = wezterm.action.ScrollByPage(-1) },
|
|
{ key = 'PageDown', mods = 'SHIFT', action = wezterm.action.ScrollByPage(1) },
|
|
{ key = 'PageUp', mods = 'ALT', action = wezterm.action.ActivateTabRelative(-1) },
|
|
{ key = 'PageDown', mods = 'ALT|SHIFT', action = wezterm.action.MoveTabRelative(-1) },
|
|
{ key = 'PageDown', mods = 'ALT', action = wezterm.action.ActivateTabRelative(1) },
|
|
{ key = 'PageDown', mods = 'ALT|SHIFT', action = wezterm.action.MoveTabRelative(1) },
|
|
{ key = 'LeftArrow', mods = 'ALT', action = wezterm.action.ActivatePaneDirection 'Left' },
|
|
{ key = 'LeftArrow', mods = 'ALT|SHIFT', action = wezterm.action.AdjustPaneSize{ 'Left', 1 } },
|
|
{ key = 'RightArrow', mods = 'ALT', action = wezterm.action.ActivatePaneDirection 'Right' },
|
|
{ key = 'RightArrow', mods = 'ALT|SHIFT', action = wezterm.action.AdjustPaneSize{ 'Right', 1 } },
|
|
{ key = 'UpArrow', mods = 'ALT', action = wezterm.action.ActivatePaneDirection 'Up' },
|
|
{ key = 'UpArrow', mods = 'ALT|SHIFT', action = wezterm.action.AdjustPaneSize{ 'Up', 1 } },
|
|
{ key = 'DownArrow', mods = 'ALT', action = wezterm.action.ActivatePaneDirection 'Down' },
|
|
{ key = 'DownArrow', mods = 'ALT|SHIFT', action = wezterm.action.AdjustPaneSize{ 'Down', 1 } },
|
|
},
|
|
}
|