Created
April 12, 2024 02:23
-
-
Save tjstebbing/dece08394bb690d1c2b97845902a133f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Pull in the wezterm API | |
local wezterm = require("wezterm") | |
-- This table will hold the configuration. | |
local config = {} | |
-- In newer versions of wezterm, use the config_builder which will | |
-- help provide clearer error messages | |
if wezterm.config_builder then | |
config = wezterm.config_builder() | |
end | |
-- This is where you actually apply your config choices | |
-- For example, changing the color scheme: | |
--config.color_scheme = 'Decaf (base16)' | |
--config.color_scheme = "Catppuccin Frappe"" | |
config.color_scheme = "Everforest Dark (Medium)" | |
config.font = wezterm.font("Hack Nerd Font Mono", { weight = "Regular", stretch = "Normal", style = "Normal" }) -- /Users/tjstebbing/Library/Fonts/Hack Italic Nerd Font Complete Mono.ttf, CoreText | |
config.font_size = 12.0 | |
config.enable_kitty_graphics = true | |
config.enable_tab_bar = false | |
config.check_for_updates = false | |
config.show_update_window = false | |
config.window_padding = { | |
left = 0, | |
right = 0, | |
top = 0, | |
bottom = 0, | |
} | |
config.keys = { | |
-- This will create a new split and run your default program inside it | |
{ | |
key = "\\", | |
mods = "SUPER", | |
action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }), | |
}, | |
{ | |
key = "-", | |
mods = "SUPER", | |
action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }), | |
}, | |
{ | |
key = "z", | |
mods = "SUPER", | |
action = wezterm.action.TogglePaneZoomState, | |
}, | |
{ | |
key = "LeftArrow", | |
mods = "SUPER", | |
action = wezterm.action.ActivatePaneDirection("Left"), | |
}, | |
{ | |
key = "RightArrow", | |
mods = "SUPER", | |
action = wezterm.action.ActivatePaneDirection("Right"), | |
}, | |
{ | |
key = "UpArrow", | |
mods = "SUPER", | |
action = wezterm.action.ActivatePaneDirection("Up"), | |
}, | |
{ | |
key = "DownArrow", | |
mods = "SUPER", | |
action = wezterm.action.ActivatePaneDirection("Down"), | |
}, | |
} | |
-- and finally, return the configuration to wezterm | |
return config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment