dotfiles/home/apps/wezterm/wezterm.lua

46 lines
1.1 KiB
Lua
Raw Normal View History

2023-05-25 20:50:28 +02:00
---@type wezterm
local wezterm = require("wezterm")
2023-05-18 12:30:46 +02:00
local utils = require("utils")
local c = {}
if wezterm.config_builder then
c = wezterm.config_builder()
c:set_strict_mode(true)
end
2023-03-05 05:40:35 +01:00
require("fonts").apply(c)
require("keys").apply(c)
2023-03-05 05:40:35 +01:00
-- window
c.window_decorations = "RESIZE"
2023-05-18 12:30:46 +02:00
c.window_padding = { left = 0, right = 0, top = 0, bottom = 0 }
2023-03-05 05:40:35 +01:00
-- dim unfocused panes
c.inactive_pane_hsb = {
saturation = 1.0,
2023-05-18 12:30:46 +02:00
brightness = 0.8,
}
2023-03-05 05:40:35 +01:00
-- etc.
c.adjust_window_size_when_changing_font_size = false
c.audible_bell = "Disabled"
c.clean_exit_codes = { 130 }
c.default_cursor_style = "BlinkingBar"
c.launch_menu = {
{ label = "Music player", args = { "ncmpcpp" } },
}
2023-05-18 12:30:46 +02:00
c.command_palette_font_size = 13.0
c.window_frame = { font_size = 13.0 }
c.window_background_opacity = 0.9
2023-03-21 05:44:39 +01:00
wezterm.plugin
.require("https://github.com/catppuccin/wezterm")
.apply_to_config(c, {
flavor = "mocha",
2023-05-18 12:30:46 +02:00
sync = utils.is_darwin(),
2023-03-21 05:44:39 +01:00
sync_flavors = { light = "latte", dark = "mocha" },
})
2023-03-20 23:30:58 +01:00
wezterm.plugin
.require("https://github.com/nekowinston/wezterm-bar")
2023-05-18 12:30:46 +02:00
.apply_to_config(c)
2023-03-05 05:40:35 +01:00
return c