init
This commit is contained in:
commit
498f3050d5
145 changed files with 2964 additions and 0 deletions
49
home/terminal/emulator/wezterm.nix
Normal file
49
home/terminal/emulator/wezterm.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
programs.wezterm = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
local wezterm = require'wezterm'
|
||||
local c = {}
|
||||
if wezterm.config_builder then
|
||||
c = wezterm.config_builder()
|
||||
end
|
||||
c.hide_tab_bar_if_only_one_tab = true
|
||||
c.color_scheme = "GitHub Dark"
|
||||
c.window_padding = { left = 10, right = 10, top = 5, bottom = 5 }
|
||||
c.window_decorations = 'RESIZE'
|
||||
c.window_close_confirmation = "NeverPrompt"
|
||||
c.use_fancy_tab_bar = false
|
||||
|
||||
c.font_size = 9
|
||||
c.adjust_window_size_when_changing_font_size = true
|
||||
|
||||
|
||||
-- Keys
|
||||
c.leader = { key = 'j', mods = 'CTRL', timeout_milliseconds = 1000 }
|
||||
c.keys = {
|
||||
{
|
||||
key = 'v',
|
||||
mods = 'LEADER',
|
||||
action = wezterm.action.SplitHorizontal { domain = 'CurrentPaneDomain' },
|
||||
},
|
||||
{
|
||||
key = 's',
|
||||
mods = 'LEADER',
|
||||
action = wezterm.action.SplitVertical { domain = 'CurrentPaneDomain' },
|
||||
},
|
||||
{
|
||||
key = 'q',
|
||||
mods = 'LEADER',
|
||||
action = wezterm.action.CloseCurrentPane { confirm = false },
|
||||
},
|
||||
{
|
||||
key = 'f',
|
||||
mods = 'LEADER',
|
||||
action = wezterm.action.TogglePaneZoomState,
|
||||
},
|
||||
}
|
||||
|
||||
return c
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue