Last active
June 27, 2024 00:17
-
-
Save Sarctiann/e610a75795f4d380f3cad5d5d3f27d9f to your computer and use it in GitHub Desktop.
This file contains 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
local wezterm = require("wezterm") | |
-- "./config/wezterm/local_values.lua" | |
local local_values = require("local_values") | |
local config = wezterm.config_builder() | |
local mux = wezterm.mux | |
wezterm.on("gui-attached", function(_) | |
-- maximize all displayed windows on startup | |
local workspace = mux.get_active_workspace() | |
for _, window in ipairs(mux.all_windows()) do | |
if window:get_workspace() == workspace then | |
window:gui_window():maximize() | |
end | |
end | |
end) | |
-- Start TMUX | |
config.default_prog = local_values.entry_point | |
-- Font settings | |
config.font = wezterm.font("CodeNewRoman Nerd Font Propo") | |
config.font_size = local_values.font_size | |
config.custom_block_glyphs = false | |
config.anti_alias_custom_block_glyphs = false | |
config.allow_square_glyphs_to_overflow_width = "Always" | |
config.freetype_load_flags = "NO_HINTING|NO_AUTOHINT" | |
config.freetype_load_target = "Light" | |
config.freetype_render_target = "HorizontalLcd" | |
-- Window settings | |
config.enable_tab_bar = false | |
config.window_decorations = "RESIZE" | |
config.window_padding = { | |
top = local_values.padding, | |
left = local_values.padding, | |
right = local_values.padding, | |
bottom = local_values.padding, | |
} | |
config.window_background_opacity = local_values.opacity | |
config.macos_window_background_blur = 25 | |
-- Cursor settings | |
config.default_cursor_style = "BlinkingBar" | |
config.force_reverse_video_cursor = true | |
-- Color settings | |
config.colors = { | |
-- The default text color | |
foreground = "#c0caf5", | |
-- The default background color | |
background = "#121520", | |
-- Overrides the cell background color when the current cell is occupied by the | |
-- cursor and the cursor style is set to Block | |
cursor_bg = "#c0caf5", | |
-- Overrides the text color when the current cell is occupied by the cursor | |
cursor_fg = "#1a1b26", | |
-- 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 = "#c0caf5", | |
-- Here Aremoved some useless (for my setup) colors | |
-- The color of the split lines between panes | |
split = "#444444", | |
ansi = { | |
"#151e1e", | |
"#d7546e", | |
"#7ebe5a", | |
"#c0af68", | |
"#3a82da", | |
"#ad7af9", | |
"#5bdded", | |
"#a9b1d6", | |
}, | |
brights = { | |
"#404858", | |
"#f7768e", | |
"#9ece6a", | |
"#e0af68", | |
"#7aa2f7", | |
"#bb9af7", | |
"#7dcfff", | |
"#c0caf5", | |
}, | |
-- Arbitrary colors of the palette in the range from 16 to 255 | |
indexed = { [136] = "#e0af68", [16] = "#00284f", [17] = "#db4b4b" }, | |
-- 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 = "#e0af68", | |
-- Here I removed other colors | |
} | |
return config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment