Last active
January 21, 2025 21:39
-
-
Save partrita/3ff9f7dee568bdfbdacd0de04a617882 to your computer and use it in GitHub Desktop.
My wezterm config file for cross platform.
This file contains hidden or 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
local wezterm = require("wezterm") | |
local config = wezterm.config_builder() | |
--local gpus = wezterm.gui.enumerate_gpus[0] | |
-- 렌더링 설정 | |
--config.front_end = "Software" | |
--config.webgpu_preferred_adapter = gpus[0] | |
config.front_end = "WebGpu" | |
config.webgpu_power_preference = "HighPerformance" | |
-- 운영 체제에 따른 기본 프로그램 설정 | |
local function set_default_program() | |
if wezterm.target_triple == "x86_64-pc-windows-msvc" then | |
return { "pwsh.exe" } | |
end | |
end | |
config.default_prog = set_default_program() | |
-- 색상 및 폰트 설정 | |
--config.color_scheme = "Catppuccin Frappe" | |
config.color_scheme = "Nord (Gogh)" | |
config.font = wezterm.font_with_fallback({ | |
{ family = "MesloLGM Nerd Font", scale = 1.0 }, | |
{ family = "Pretendard" }, | |
{ family = "JetBrains Mono" }, | |
}) | |
config.font_size = 12.0 | |
-- 창 장식 설정 | |
config.window_decorations = "RESIZE" | |
config.window_background_opacity = 1.0 | |
config.enable_tab_bar = true | |
config.warn_about_missing_glyphs = false | |
config.window_close_confirmation = "NeverPrompt" | |
config.adjust_window_size_when_changing_font_size = false | |
config.window_padding = { | |
left = 3, | |
right = 3, | |
top = 3, | |
bottom = 3, | |
} | |
-- Muxtiplexing keymaps | |
local act = wezterm.action | |
config.leader = { mods = "CTRL", key = "b", timeout_milliseconds = 4000 } | |
config.keys = { | |
{ mods = "LEADER", key = "v", action = act.SplitVertical { domain = "CurrentPaneDomain" } }, | |
{ mods = "LEADER", key = "h", action = act.SplitHorizontal { domain = "CurrentPaneDomain" } }, | |
{ mods = "LEADER", key = "x", action = act.CloseCurrentPane { confirm = false } }, | |
{ mods = "LEADER", key = "LeftArrow", action = act.ActivatePaneDirection "Left" }, | |
{ mods = "LEADER", key = "RightArrow", action = act.ActivatePaneDirection "Right" }, | |
{ mods = "LEADER", key = "UpArrow", action = act.ActivatePaneDirection "Up" }, | |
{ mods = "LEADER", key = "DownArrow", action = act.ActivatePaneDirection "Down" }, | |
{ mods = 'LEADER', key = 'a', action = act.ActivateKeyTable { name = 'activate_pane', one_shot = false } }, | |
{ mods = 'LEADER', key = 'r', action = act.ActivateKeyTable { name = 'resize_pane' , one_shot = false } }, | |
{ mods = 'LEADER', key = 'c', action = act.ActivateKeyTable { name = 'rotate_pane' , one_shot = false } }, | |
{ mods = 'LEADER', key = ']', action = act.RotatePanes "Clockwise" }, | |
{ mods = 'LEADER', key = '[', action = act.RotatePanes "CounterClockwise" }, | |
{ mods = 'LEADER', key = 'p', action = act{PaneSelect={alphabet="0123456789"}}}, | |
} | |
-- 마우스 바인딩 설정 | |
config.mouse_bindings = { | |
{ | |
event = { Up = { streak = 1, button = "Left" } }, | |
mods = "CTRL", | |
action = act.OpenLinkAtMouseCursor, | |
}, | |
} | |
return config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment