-- Pull in the wezterm API local wezterm = require("wezterm") -- This will hold the configuration. local config = wezterm.config_builder() -- ------------------------------------------------------------------------------------------------ -- Set window position (bottom-right) -- ------------------------------------------------------------------------------------------------ -- https://github.com/wezterm/wezterm/discussions/6041 wezterm.on("gui-startup", function(cmd) local main_screen = wezterm.gui.screens().main local position = { x = main_screen.width - 1400, y = main_screen.height - 500, origin = "MainScreen", } cmd = cmd or { position = position } wezterm.mux.spawn_window(cmd) end ) -- This is where you actually apply your config choices config.font = wezterm.font("MesloLGS Nerd Font Mono") config.font_size = 17 -- for test config.adjust_window_size_when_changing_font_size = false -- config.enable_tab_bar = false config.hide_tab_bar_if_only_one_tab = true config.native_macos_fullscreen_mode = false config.initial_cols = 110 config.initial_rows = 40 config.window_decorations = "RESIZE" -- config.window_decorations = "TITLE | RESIZE" -- config.window_background_opacity = 0.95 -- config.macos_window_background_blur = 10 -- my coolnight colorscheme: config.colors = { -- foreground = "#AAAAAA", foreground = "#CBE0F0", background = "#222222", -- background = "#011423", cursor_bg = "#47FF9C", cursor_border = "#47FF9C", cursor_fg = "#011423", -- selection_bg = "#033259", selection_bg = "#044072", selection_fg = "#CBE0F0", ansi = { "#214969", "#E52E2E", "#44FFB1", "#FFE073", "#0FC5ED", "#a277ff", "#24EAF7", "#24EAF7" }, brights = { "#214969", "#E52E2E", "#44FFB1", "#FFE073", "#A277FF", "#a277ff", "#24EAF7", "#24EAF7" }, } -- and finally, return the configuration to wezterm return config