Last active
October 17, 2024 02:29
-
-
Save ikouchiha47/1b46dc4c0c1ec798a84d44066899e0ae to your computer and use it in GitHub Desktop.
wezterm
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 act = wezterm.action | |
-- This will hold the configuration. | |
local config = wezterm.config_builder() | |
-- load my other fonts | |
-- config.font_dirs = { "/home/darksied/.local/share/fonts/" } | |
-- config.color_scheme = "rose-pine" | |
config.use_fancy_tab_bar = false | |
config.enable_wayland = false | |
config.cursor_blink_ease_in = "EaseIn" | |
config.cursor_blink_ease_out = "EaseOut" | |
config.cursor_thickness = 1.0 | |
config.default_cursor_style = "BlinkingBar" | |
config.animation_fps = 120 | |
-- config.font = wezterm.font("CaskaydiaMono Nerd Font") | |
-- config.font = wezterm.font("CaskaydiaCove Nerd Font") | |
-- config.font = wezterm.font("M+1Code Nerd Font", { weight = "Regular" }) | |
config.font_size = 13 | |
-- config.front_end = "Software" | |
local gpus = wezterm.gui.enumerate_gpus() | |
config.webgpu_preferred_adapter = gpus[1] | |
-- config.front_end = "WebGpu" | |
config.front_end = "Software" | |
config.keys = { | |
-- Make Option-Left equivalent to Alt-b which many line editors interpret as backward-word | |
{ | |
key = "LeftArrow", | |
mods = "OPT", | |
action = wezterm.action({ SendString = "\x1bb" }), | |
}, | |
-- Make Option-Right equivalent to Alt-f; forward-word | |
{ | |
key = "RightArrow", | |
mods = "OPT", | |
action = wezterm.action({ SendString = "\x1bf" }), | |
}, | |
{ | |
key = "%", | |
mods = "CTRL|SHIFT", | |
action = wezterm.action.SplitHorizontal({ domain = "CurrentPaneDomain" }), | |
}, | |
{ | |
key = "+", | |
mods = "CTRL|SHIFT", | |
action = wezterm.action.SplitVertical({ domain = "CurrentPaneDomain" }), | |
}, | |
{ | |
key = "x", | |
mods = "CTRL", | |
action = wezterm.action.CloseCurrentPane({ confirm = true }), | |
}, | |
{ | |
key = "z", | |
mods = "CTRL|SHIFT", | |
action = wezterm.action.TogglePaneZoomState, | |
}, | |
{ | |
key = "O", | |
mods = "CTRL|SHIFT", | |
action = wezterm.action.ShowDebugOverlay, | |
}, | |
{ | |
key = "V", | |
mods = "CTRL", | |
action = act.PasteFrom("Clipboard"), | |
}, | |
{ | |
key = "V", | |
mods = "CTRL", | |
action = act.PasteFrom("PrimarySelection"), | |
}, | |
} | |
return config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment