Last active
January 12, 2025 05:15
-
-
Save davidspry/de135a5aef00de20b3cc647372be16d1 to your computer and use it in GitHub Desktop.
Wezterm configuration for macOS
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
| -- Wezterm configuration for macOS | |
| local wezterm = require 'wezterm' | |
| local config = {} | |
| if wezterm.config_builder then | |
| config = wezterm.config_builder() | |
| end | |
| -- Theme | |
| config.color_scheme = 'Catppuccin Mocha' | |
| -- Fonts | |
| config.font_size = 12.0 | |
| config.font = wezterm.font('JetBrains Mono', { weight = 'Medium' }) | |
| -- Tab Bar | |
| config.use_fancy_tab_bar = false | |
| -- Window | |
| config.window_decorations = "RESIZE" | |
| config.native_macos_fullscreen_mode = true | |
| config.initial_cols = 128 | |
| config.initial_rows = 32 | |
| -- Padding | |
| config.window_padding = { | |
| left = '1.5cell', | |
| right = '1.5cell', | |
| top = '0.5cell', | |
| bottom = '0.5cell', | |
| } | |
| -- Key Bindings | |
| config.keys = { | |
| { | |
| key = 'k', | |
| mods = 'CMD', | |
| action = wezterm.action.ClearScrollback 'ScrollbackAndViewport' | |
| }, | |
| { | |
| key = 'w', | |
| mods = 'CMD', | |
| action = wezterm.action.CloseCurrentPane({ confirm = true }), | |
| }, | |
| { | |
| key = 'f', | |
| mods = 'CMD|SHIFT', | |
| action = wezterm.action.ToggleFullScreen, | |
| }, | |
| { | |
| key = 'h', | |
| mods = 'CMD|SHIFT', | |
| action = wezterm.action.SplitHorizontal({ domain = 'CurrentPaneDomain' }), | |
| }, | |
| { | |
| key = 'v', | |
| mods = 'CMD|SHIFT', | |
| action = wezterm.action.SplitVertical({ domain = 'CurrentPaneDomain' }), | |
| }, | |
| } | |
| return config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment