From 8a1197e981e6c50a893ba2978c3c15e118c185a3 Mon Sep 17 00:00:00 2001 From: trivernis Date: Sun, 9 Apr 2023 00:27:44 +0200 Subject: [PATCH] Add wezterm configuration --- private_dot_config/wezterm/wezterm.lua | 52 ++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 private_dot_config/wezterm/wezterm.lua diff --git a/private_dot_config/wezterm/wezterm.lua b/private_dot_config/wezterm/wezterm.lua new file mode 100644 index 0000000..fb2aee2 --- /dev/null +++ b/private_dot_config/wezterm/wezterm.lua @@ -0,0 +1,52 @@ +local wezterm = require 'wezterm' +local act = wezterm.action +local config = {} + +config.enable_scroll_bar = true +config.font = wezterm.font_with_fallback { + 'Fira Code', + 'FiraCode NF', + 'FiraMono', + 'Jetbrains Mono', +} +config.font_size = 10 +config.color_scheme = 'Dracula' + +-- keybinds, mostly inspired by konsole +config.keys = { + { + key = 't', + mods = 'CTRL|SHIFT', + action = act.SpawnTab 'CurrentPaneDomain', + }, + { + key = 'w', + mods = 'CTRL', + action = act.CloseCurrentTab { confirm = true } + }, + { + key = 'RightArrow', + mods = 'SHIFT', + action = act.ActivateTabRelative(1) + }, + { + key = 'LeftArrow', + mods = 'SHIFT', + action = act.ActivateTabRelative(-1) + }, + { + key = 'w', + mods = 'CTRL|SHIFT', + action = act.ActivateTabRelative(-1) + } +} + +if wezterm.target_triple == 'x86_64-pc-windows-msvc' then +-- Windows specific configuration + config.default_prog = { 'nu' } +else +-- Linux specific configuration + +end + +return config \ No newline at end of file