mirror of
https://github.com/pnx/dotfiles
synced 2026-07-03 06:53:40 +02:00
update wezterm config
This commit is contained in:
parent
f66093b0ef
commit
42ecd2ad90
1 changed files with 116 additions and 164 deletions
130
wezterm.lua
130
wezterm.lua
|
|
@ -1,12 +1,35 @@
|
||||||
-- Pull in the wezterm API
|
|
||||||
local wezterm = require 'wezterm'
|
local wezterm = require 'wezterm'
|
||||||
|
|
||||||
-- This will hold the configuration.
|
return {
|
||||||
local config = wezterm.config_builder()
|
default_prog = { 'pwsh' },
|
||||||
|
|
||||||
|
-- Fonts
|
||||||
|
--
|
||||||
|
font_size = 13,
|
||||||
|
line_height = 1.4,
|
||||||
|
font = wezterm.font {
|
||||||
|
family = 'JetBrainsMono Nerd Font',
|
||||||
|
harfbuzz_features = { 'zero' },
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Window
|
||||||
|
--
|
||||||
|
window_background_opacity = 0.97,
|
||||||
|
window_padding = {
|
||||||
|
left = 0,
|
||||||
|
right = 0,
|
||||||
|
top = 0,
|
||||||
|
bottom = 0,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- Tabs
|
||||||
|
--
|
||||||
|
enable_tab_bar = true,
|
||||||
|
use_fancy_tab_bar = false,
|
||||||
|
|
||||||
-- Colors
|
-- Colors
|
||||||
--
|
--
|
||||||
config.colors = {
|
colors = {
|
||||||
-- The default text color
|
-- The default text color
|
||||||
foreground = '#eceef4',
|
foreground = '#eceef4',
|
||||||
-- The default background color
|
-- The default background color
|
||||||
|
|
@ -63,113 +86,42 @@ config.colors = {
|
||||||
-- to this color to give a visual cue about the compose state.
|
-- to this color to give a visual cue about the compose state.
|
||||||
compose_cursor = 'red',
|
compose_cursor = 'red',
|
||||||
|
|
||||||
-- Colors for copy_mode and quick_select
|
|
||||||
-- available since: 20220807-113146-c2fee766
|
|
||||||
-- In copy_mode, the color of the active text is:
|
|
||||||
-- 1. copy_mode_active_highlight_* if additional text was selected using the mouse
|
|
||||||
-- 2. selection_* otherwise
|
|
||||||
-- copy_mode_active_highlight_bg = { Color = '#000000' },
|
|
||||||
-- use `AnsiColor` to specify one of the ansi color palette values
|
|
||||||
-- (index 0-15) using one of the names "Black", "Maroon", "Green",
|
|
||||||
-- "Olive", "Navy", "Purple", "Teal", "Silver", "Grey", "Red", "Lime",
|
|
||||||
-- "Yellow", "Blue", "Fuchsia", "Aqua" or "White".
|
|
||||||
--copy_mode_active_highlight_fg = { AnsiColor = 'Black' },
|
|
||||||
-- copy_mode_inactive_highlight_bg = { AnsiColor = 'Red' },
|
|
||||||
-- copy_mode_inactive_highlight_fg = { AnsiColor = 'White' },
|
|
||||||
|
|
||||||
-- quick_select_label_bg = { Color = 'peru' },
|
|
||||||
-- quick_select_label_fg = { Color = '#ffffff' },
|
|
||||||
-- quick_select_match_bg = { AnsiColor = 'Navy' },
|
|
||||||
-- quick_select_match_fg = { Color = '#ffffff' },
|
|
||||||
--
|
|
||||||
tab_bar = {
|
tab_bar = {
|
||||||
-- The color of the strip that goes along the top of the window
|
-- The color of the strip that goes along the top of the window
|
||||||
-- (does not apply when fancy tab bar is in use)
|
-- (does not apply when fancy tab bar is in use)
|
||||||
background = '#0b0022',
|
background = '#0D0F17',
|
||||||
|
|
||||||
-- The active tab is the one that has focus in the window
|
-- The active tab is the one that has focus in the window
|
||||||
active_tab = {
|
active_tab = {
|
||||||
-- The color of the background area for the tab
|
bg_color = '#1a1c2d',
|
||||||
bg_color = '#2b2042',
|
fg_color = '#eceef4',
|
||||||
-- The color of the text for the tab
|
|
||||||
fg_color = '#c0c0c0',
|
|
||||||
|
|
||||||
-- Specify whether you want "Half", "Normal" or "Bold" intensity for the
|
|
||||||
-- label shown for this tab.
|
|
||||||
-- The default is "Normal"
|
|
||||||
intensity = 'Normal',
|
|
||||||
|
|
||||||
-- Specify whether you want "None", "Single" or "Double" underline for
|
|
||||||
-- label shown for this tab.
|
|
||||||
-- The default is "None"
|
|
||||||
underline = 'None',
|
|
||||||
|
|
||||||
-- Specify whether you want the text to be italic (true) or not (false)
|
|
||||||
-- for this tab. The default is false.
|
|
||||||
italic = false,
|
|
||||||
|
|
||||||
-- Specify whether you want the text to be rendered with strikethrough (true)
|
|
||||||
-- or not for this tab. The default is false.
|
|
||||||
strikethrough = false,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Inactive tabs are the tabs that do not have focus
|
-- Inactive tabs are the tabs that do not have focus
|
||||||
inactive_tab = {
|
inactive_tab = {
|
||||||
bg_color = '#1b1032',
|
bg_color = '#0D0F17',
|
||||||
fg_color = '#808080',
|
fg_color = '#eceef4',
|
||||||
|
|
||||||
-- The same options that were listed under the `active_tab` section above
|
|
||||||
-- can also be used for `inactive_tab`.
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- You can configure some alternate styling when the mouse pointer
|
-- You can re some alternate styling when the mouse pointer
|
||||||
-- moves over inactive tabs
|
-- moves over inactive tabs
|
||||||
inactive_tab_hover = {
|
inactive_tab_hover = {
|
||||||
bg_color = '#3b3052',
|
bg_color = '#1a1c2d',
|
||||||
fg_color = '#909090',
|
fg_color = '#eceef4',
|
||||||
italic = true,
|
|
||||||
|
|
||||||
-- The same options that were listed under the `active_tab` section above
|
|
||||||
-- can also be used for `inactive_tab_hover`.
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- The new tab button that let you create new tabs
|
-- The new tab button that let you create new tabs
|
||||||
new_tab = {
|
new_tab = {
|
||||||
bg_color = '#1b1032',
|
bg_color = '#0D0F17',
|
||||||
fg_color = '#808080',
|
fg_color = '#eceef4',
|
||||||
|
|
||||||
-- The same options that were listed under the `active_tab` section above
|
|
||||||
-- can also be used for `new_tab`.
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- You can configure some alternate styling when the mouse pointer
|
-- You can re some alternate styling when the mouse pointer
|
||||||
-- moves over the new tab button
|
-- moves over the new tab button
|
||||||
new_tab_hover = {
|
new_tab_hover = {
|
||||||
bg_color = '#3b3052',
|
bg_color = '#1a1c2d',
|
||||||
fg_color = '#909090',
|
fg_color = '#eceef4',
|
||||||
italic = true,
|
},
|
||||||
|
|
||||||
-- The same options that were listed under the `active_tab` section above
|
|
||||||
-- can also be used for `new_tab_hover`.
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
config.window_padding = {
|
|
||||||
left = 0,
|
|
||||||
right = 0,
|
|
||||||
top = 0,
|
|
||||||
bottom = 0,
|
|
||||||
}
|
|
||||||
|
|
||||||
config.window_background_opacity = 0.99
|
|
||||||
config.enable_tab_bar = false
|
|
||||||
|
|
||||||
config.font_size = 13
|
|
||||||
config.font = wezterm.font {
|
|
||||||
family = 'JetBrainsMono Nerd Font',
|
|
||||||
harfbuzz_features = { 'zero', 'calt=1', 'clig=0', 'liga=0' }
|
|
||||||
}
|
|
||||||
|
|
||||||
-- and finally, return the configuration to wezterm
|
|
||||||
return config
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue