/ wezterm / config / appearance.lua
appearance.lua
 1  local colors = require('colors.custom')
 2  local gpu_adapters = require('extensions.gpu_adapter')
 3  local wezterm = require('wezterm')
 4  
 5  return {
 6    animation_fps = 60,
 7    enable_kitty_graphics = true,
 8    front_end = 'WebGpu',
 9    max_fps = 60,
10    webgpu_power_preference = 'HighPerformance',
11    webgpu_preferred_adapter = gpu_adapters:pick_best(),
12    window_decorations = 'RESIZE',
13  
14    -- color scheme
15    colors = colors,
16  
17    -- background
18    background = {
19      {
20        source = { File = wezterm.GLOBAL.background },
21        horizontal_align = 'Center',
22      },
23      {
24        source = { Color = colors.background },
25        height = '100%',
26        width = '100%',
27        opacity = 0.96,
28      },
29    },
30  
31    -- scrollbar
32    enable_scroll_bar = true,
33    scrollback_lines = 10000,
34  
35    -- tab bar
36    enable_tab_bar = true,
37    hide_tab_bar_if_only_one_tab = false,
38    use_fancy_tab_bar = false,
39    tab_max_width = 45,
40    show_tab_index_in_tab_bar = false,
41    switch_to_last_active_tab_when_closing_tab = true,
42    tab_bar_at_bottom = false,
43  
44    -- window
45    window_padding = {
46      left = 5,
47      right = 10,
48      top = 12,
49      bottom = 7,
50    },
51    window_close_confirmation = 'NeverPrompt',
52    window_frame = {
53      active_titlebar_bg = '#090909',
54    },
55    inactive_pane_hsb = {
56      saturation = 0.9,
57      brightness = 0.65,
58    },
59  }