-
Notifications
You must be signed in to change notification settings - Fork 0
/
wezterm.lua
57 lines (53 loc) · 1.89 KB
/
wezterm.lua
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
-- Pull in the wezterm API
local wezterm = require("wezterm")
-- Helper for defining key assignment actions in your configuration file
--local act = wezterm.action
-- Module exposes functions that operate on the multiplexer layer
local mux = wezterm.mux
-- This will hold the configuration.
local config = wezterm.config_builder()
-- If you don't want the default assignments to be registered,
-- you can disable all of them with this configuration;
-- if you chose to do this, you must explicitly register
-- every binding.
--config.disable_default_mouse_bindings = true
--config.mouse_bindings = {
-- -- Change the default click behavior so that it only selects
-- -- text and doesn't open hyperlinks
-- {
-- event = { Up = { streak = 1, button = 'Left' } },
-- mods = 'NONE',
-- action = act.CompleteSelection 'ClipboardAndPrimarySelection',
-- },
-- -- and make CTRL-Click open hyperlinks
-- {
-- event = { Up = { streak = 1, button = 'Left' } },
-- mods = 'CTRL',
-- action = act.OpenLinkAtMouseCursor,
-- },
-- -- Scrolling up while holding CTRL increases the font size
-- {
-- event = { Down = { streak = 1, button = { WheelUp = 1 } } },
-- mods = 'CTRL',
-- action = act.IncreaseFontSize,
-- },
-- -- Scrolling down while holding CTRL decreases the font size
-- {
-- event = { Down = { streak = 1, button = { WheelDown = 1 } } },
-- mods = 'CTRL',
-- action = act.DecreaseFontSize,
-- },
--}
wezterm.on("gui-startup", function(cmd)
local _, _, window = mux.spawn_window(cmd or {})
window:gui_window():maximize()
end)
-- This is where you actually apply your config choices
config.font_size = 15.0
config.font = wezterm.font("JetBrains Mono")
config.window_background_opacity = 0.9
config.default_cursor_style = "BlinkingBlock"
-- For example, changing the color scheme:
config.color_scheme = "Dracula"
-- and finally, return the configuration to wezterm
return config