dotfiles/wezterm.lua
Joshua Finch 073d78e1e9 feat: Adding the auto config reload to wezterm
Also changing the order of colorschemes in wezterm to use the default as
the first in the list to allow for setting others to overwrite it for
testing.
2025-05-07 10:25:03 -05:00

54 lines
1.2 KiB
Lua

local wezterm = require 'wezterm'
local xcursor_size = nil
local xcursor_theme = nil
local success, stdout, _ = wezterm.run_child_process({
"gsettings",
"get",
"org.gnome.desktop.interface",
"cursor-theme"
})
if success then
xcursor_theme = stdout:gsub("'(.+)'\n", "%1")
end
local success, _, _ = wezterm.run_child_process({
"gsettings",
"get",
"org.gnome.desktop.interface",
"cursor-size"
})
if success then
xcursor_size = tonumber(stdout)
end
local config = wezterm.config_builder()
config.color_scheme = 's3r0 modified (terminal.sexy)'
-- config.color_scheme = 'darkmatrix'
-- config.color_scheme = 'Mashup Colors (terminal.sexy)'
-- config.color_scheme = 'Gruvbox dark, pale (base16)'
-- config.color_scheme = 'Gruvbox Material (Gogh)'
config.font = wezterm.font 'Inconsolata Nerd Font Mono'
config.font_size = 12
config.enable_tab_bar = false
config.window_close_confirmation = 'NeverPrompt'
config.window_padding = {
left = '0',
right = '0',
top = '0',
bottom = '0'
}
config.automatically_reload_config = true
-- config.window_background_opacity = 0.9
config.xcursor_theme = xcursor_theme
config.xcursor_size = xcursor_size
return config