Skip to content

Instantly share code, notes, and snippets.

@sftblw
Created June 9, 2023 02:50
Show Gist options
  • Save sftblw/c750a040d7d6c1ec05c39578b2c03cff to your computer and use it in GitHub Desktop.
Save sftblw/c750a040d7d6c1ec05c39578b2c03cff to your computer and use it in GitHub Desktop.
.wezterm.lua
-- https://wezfurlong.org/wezterm/config/files.html
-- 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 = 'AdventureTime'
config.font = wezterm.font 'Hack'
config.font_size = 14.0
config.colors = {
foreground = "#c5c8c6"
}
config.enable_scroll_bar = true
config.hide_tab_bar_if_only_one_tab = true
-- config.window_background_opacity = 0.8
config.background = {
{
source = {Color = "#1d1f21" },
width = '100%',
height = '100%',
opacity = 0.8,
},
}
-- https://wezfurlong.org/wezterm/config/lua/keyassignment/SpawnTab.html
config.keys = {
-- Create a new tab in the same domain as the current pane.
-- This is usually what you want.
{
key = 't',
mods = 'CTRL',
action = wezterm.action.SpawnTab 'CurrentPaneDomain',
},
{
key = 'w',
mods = 'CTRL',
action = wezterm.action.CloseCurrentTab { confirm = true },
},
}
-- 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