diff --git a/wezterm.lua b/wezterm.lua index 2e558ba..05e97b4 100644 --- a/wezterm.lua +++ b/wezterm.lua @@ -1,175 +1,127 @@ --- Pull in the wezterm API local wezterm = require 'wezterm' --- This will hold the configuration. -local config = wezterm.config_builder() +return { + default_prog = { 'pwsh' }, --- Colors --- -config.colors = { - -- The default text color - foreground = '#eceef4', - -- The default background color - background = '#0E1019', - - -- Overrides the cell background color when the current cell is occupied by the - -- cursor and the cursor style is set to Block - cursor_bg = '#767BA0', - -- Overrides the text color when the current cell is occupied by the cursor - cursor_fg = '#eceef4', - -- Specifies the border color of the cursor when the cursor style is set to Block, - -- or the color of the vertical or horizontal bar when the cursor style is set to - -- Bar or Underline. - cursor_border = '#767BA0', - - -- the foreground color of selected text - -- selection_fg = 'black', - -- the background color of selected text - selection_bg = '#fffacd', - - -- The color of the scrollbar "thumb"; the portion that represents the current viewport - scrollbar_thumb = '#222222', - - -- The color of the split lines between panes - split = '#444444', - - ansi = { - '#45475A', - '#F38BA8', - '#A6E3A1', - '#F9E2AF', - '#89B4FA', - '#F5C2E7', - '#94E2D5', - '#BAC2DE', - }, - brights = { - '#585B70', - '#F38BA8', - '#A6E3A1', - '#F9E2AF', - '#89B4FA', - '#F5C2E7', - '#94E2D5', - '#A6ADC8', - }, - - -- Arbitrary colors of the palette in the range from 16 to 255 - -- indexed = { [136] = '#af8700' }, - - -- Since: 20220319-142410-0fcdea07 - -- When the IME, a dead key or a leader key are being processed and are effectively - -- holding input pending the result of input composition, change the cursor - -- to this color to give a visual cue about the compose state. - 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' }, + -- Fonts -- - tab_bar = { - -- The color of the strip that goes along the top of the window - -- (does not apply when fancy tab bar is in use) - background = '#0b0022', - - -- The active tab is the one that has focus in the window - active_tab = { - -- The color of the background area for the tab - bg_color = '#2b2042', - -- 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, + font_size = 13, + line_height = 1.4, + font = wezterm.font { + family = 'JetBrainsMono Nerd Font', + harfbuzz_features = { 'zero' }, }, - -- Inactive tabs are the tabs that do not have focus - inactive_tab = { - bg_color = '#1b1032', - fg_color = '#808080', - - -- The same options that were listed under the `active_tab` section above - -- can also be used for `inactive_tab`. + -- Window + -- + window_background_opacity = 0.97, + window_padding = { + left = 0, + right = 0, + top = 0, + bottom = 0, }, - -- You can configure some alternate styling when the mouse pointer - -- moves over inactive tabs - inactive_tab_hover = { - bg_color = '#3b3052', - fg_color = '#909090', - italic = true, + -- Tabs + -- + enable_tab_bar = true, + use_fancy_tab_bar = false, - -- The same options that were listed under the `active_tab` section above - -- can also be used for `inactive_tab_hover`. + -- Colors + -- + colors = { + -- The default text color + foreground = '#eceef4', + -- The default background color + background = '#0E1019', + + -- Overrides the cell background color when the current cell is occupied by the + -- cursor and the cursor style is set to Block + cursor_bg = '#767BA0', + -- Overrides the text color when the current cell is occupied by the cursor + cursor_fg = '#eceef4', + -- Specifies the border color of the cursor when the cursor style is set to Block, + -- or the color of the vertical or horizontal bar when the cursor style is set to + -- Bar or Underline. + cursor_border = '#767BA0', + + -- the foreground color of selected text + -- selection_fg = 'black', + -- the background color of selected text + selection_bg = '#fffacd', + + -- The color of the scrollbar "thumb"; the portion that represents the current viewport + scrollbar_thumb = '#222222', + + -- The color of the split lines between panes + split = '#444444', + + ansi = { + '#45475A', + '#F38BA8', + '#A6E3A1', + '#F9E2AF', + '#89B4FA', + '#F5C2E7', + '#94E2D5', + '#BAC2DE', + }, + brights = { + '#585B70', + '#F38BA8', + '#A6E3A1', + '#F9E2AF', + '#89B4FA', + '#F5C2E7', + '#94E2D5', + '#A6ADC8', + }, + + -- Arbitrary colors of the palette in the range from 16 to 255 + -- indexed = { [136] = '#af8700' }, + + -- Since: 20220319-142410-0fcdea07 + -- When the IME, a dead key or a leader key are being processed and are effectively + -- holding input pending the result of input composition, change the cursor + -- to this color to give a visual cue about the compose state. + compose_cursor = 'red', + + tab_bar = { + -- The color of the strip that goes along the top of the window + -- (does not apply when fancy tab bar is in use) + background = '#0D0F17', + + -- The active tab is the one that has focus in the window + active_tab = { + bg_color = '#1a1c2d', + fg_color = '#eceef4', + }, + + -- Inactive tabs are the tabs that do not have focus + inactive_tab = { + bg_color = '#0D0F17', + fg_color = '#eceef4', + }, + + -- You can re some alternate styling when the mouse pointer + -- moves over inactive tabs + inactive_tab_hover = { + bg_color = '#1a1c2d', + fg_color = '#eceef4', + }, + + -- The new tab button that let you create new tabs + new_tab = { + bg_color = '#0D0F17', + fg_color = '#eceef4', + }, + + -- You can re some alternate styling when the mouse pointer + -- moves over the new tab button + new_tab_hover = { + bg_color = '#1a1c2d', + fg_color = '#eceef4', + }, + }, }, - - -- The new tab button that let you create new tabs - new_tab = { - bg_color = '#1b1032', - fg_color = '#808080', - - -- 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 - -- moves over the new tab button - new_tab_hover = { - bg_color = '#3b3052', - fg_color = '#909090', - 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