Skip to content

Instantly share code, notes, and snippets.

@boujuan
Created December 8, 2023 15:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boujuan/f5ac21713748f47f87cb30a4d860d174 to your computer and use it in GitHub Desktop.
Save boujuan/f5ac21713748f47f87cb30a4d860d174 to your computer and use it in GitHub Desktop.
My Wezterm Configuration
local wezterm = require 'wezterm'
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- SET DEFAULT SHELL
config.default_prog = { 'C:\\Program Files\\PowerShell\\7\\pwsh.exe', '-l' }
-- RENDERING SETTINGS
config.front_end = "OpenGL"
--config.front_end = "WebGpu"
--config.webgpu_power_preference = "HighPerformance"
--config.win32_system_backdrop = 'Acrylic'
config.prefer_egl = true
config.animation_fps = 60
config.max_fps = 240
config.anti_alias_custom_block_glyphs = true
config.default_cursor_style = 'BlinkingBlock'
config.hide_mouse_cursor_when_typing = false
config.cursor_blink_rate = 800
-- FONT SETTINGS
--config.font = wezterm.font 'Hack Nerd Font Mono'
config.font = wezterm.font("JetBrainsMono NFM", { weight = "Regular" })
config.font_size = 12
-- THEMER SETTINGS
--config.color_scheme = 'Ayu Dark (Gogh)'
--config.color_scheme = 'Batman'
--config.color_scheme = 'Gruvbox dark, soft (base16)'
config.force_reverse_video_cursor = true
config.color_scheme = "Dracula (Official)"
-- WINDOW / TAB SETTINGS
config.use_fancy_tab_bar = false
config.tab_bar_at_bottom = false
config.hide_tab_bar_if_only_one_tab = false
config.show_update_window = true
config.pane_focus_follows_mouse = true
config.initial_rows = 20
config.initial_cols = 80
config.enable_scroll_bar = true
config.min_scroll_bar_height = '1cell'
config.scrollback_lines = 5000
--config.window_decorations = "TITLE"
config.window_decorations = "INTEGRATED_BUTTONS|RESIZE"
config.integrated_title_button_style = "Gnome"
config.integrated_title_buttons = { 'Hide', 'Maximize', 'Close' }
config.window_background_opacity = 0.95
config.text_background_opacity = 0.70
config.window_padding = {
left = 5,
right = 0,
top = 5,
bottom = 0,
}
config.window_frame = {
--inactive_titlebar_bg = '#353535',
--active_titlebar_bg = '#2b2042',
--inactive_titlebar_fg = '#cccccc',
--active_titlebar_fg = '#ffffff',
--inactive_titlebar_border_bottom = '#2b2042',
--active_titlebar_border_bottom = '#2b2042',
--button_fg = '#cccccc',
--button_bg = '#2b2042',
--button_hover_fg = '#ffffff',
--button_hover_bg = '#3b3052',
border_left_width = '0.15cell',
border_right_width = '0.15cell',
border_bottom_height = '0.10cell',
border_top_height = '0.15cell',
border_left_color = 'purple',
border_right_color = 'purple',
border_bottom_color = 'purple',
border_top_color = 'purple',
}
-- BACKGROUND IMAGE
config.window_background_image = './colors/halback.jpg'
--config.window_background_image = './colors/halmove.gif'
--[[
config.background = {
{
source = {
File = './colors/halback.jpg',
},
},
}
]]
config.window_background_image_hsb = {
-- Darken the background image by reducing it to 1/3rd
brightness = 0.25,
-- You can adjust the hue by scaling its value.
-- a multiplier of 1.0 leaves the value unchanged.
hue = 0.9,
-- You can adjust the saturation also.
saturation = 0.8,
}
-- SET CUSTOM KEY-BINDINGS
config.disable_default_key_bindings = true
config.keys = {
{mods="CTRL|SHIFT", key="F", action=wezterm.action{Search={CaseSensitiveString=""}}},
{mods="CTRL|SHIFT", key="C", action=wezterm.action{CopyTo="Clipboard"}},
{mods="CTRL|SHIFT", key="V", action=wezterm.action{PasteFrom="Clipboard"}},
{mods="SHIFT", key="Insert", action=wezterm.action{PasteFrom="PrimarySelection"}},
{mods="CTRL", key="-", action="DecreaseFontSize"},
{mods="CTRL", key="=", action="IncreaseFontSize"},
{mods="CTRL", key="0", action="ResetFontSize"},
{key="F11", action="ToggleFullScreen"},
}
return config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment