summaryrefslogtreecommitdiff
path: root/dot_wezterm.lua
blob: 3d5bebb14e31b27fe8762e2ac70a54e18d0ca7e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
-- Pull in the wezterm API
local wezterm = require 'wezterm'

-- This will hold the configuration.
local config = wezterm.config_builder()
disable_default_key_bindings = true

-- This is where you actually apply your config choices
-- For example, changing the color scheme:
config.color_scheme = 'OneHalfDark'
config.enable_wayland = false
config.enable_tab_bar = false
config.font = wezterm.font_with_fallback {
  'Departure Mono',
  'Noto Color Emoji',
  -- 'CommitMono',
  'Noto Sans CJK JP Medium',
}

config.keys = {
  {
    key = 'n',
    mods = 'SHIFT|CTRL',
    action = wezterm.action.ToggleFullScreen,
  },
  {
    key = 'Enter',
    mods = 'ALT',
    action = wezterm.action.DisableDefaultAssignment,
  },
}

config.colors = {
  -- The default background color
  background = 'black',
}
config.use_ime = true
config.window_background_opacity = 0.9
config.font_size = 11.5
front_end = "WebGpu"
-- and finally, return the configuration to wezterm
return config