forked from mscoutermarsh/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwezterm.lua.symlink
121 lines (116 loc) · 4 KB
/
wezterm.lua.symlink
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
-- update wezterm with
-- brew upgrade --cask wez/wezterm/wezterm
-- CTRL-SHIFT-U for emojis
-- To help debug config CTRL-SHIFT-L is useful
local wezterm = require 'wezterm'
local act = wezterm.action
local function scheme_for_appearance(appearance)
if appearance:find 'Dark' then
return "Gruvbox Dark"
else
return "Solarized Light"
end
end
return {
launch_menu = {
{
label = "Top (System Monitor)",
args = {"top"},
},
{
label = "HTOP",
args = {"htop"},
},
{
label = "Python REPL",
args = {"python3"},
},
{
label = "Neovim",
args = {"nvim"},
},
},
font = wezterm.font_with_fallback({
"FiraCode Nerd Font",
"JetBrainsMono Nerd Font",
}),
window_background_opacity = 0.9, -- Set transparency level
text_background_opacity = 0.8, -- Transparency for text background
macos_window_background_blur = 20, -- Blur effect on macOSenable_wayland = true, -- Enable Wayland for better performance on Wayland systems
enable_tab_bar = true,
font_size = 16.0,
color_scheme = scheme_for_appearance(wezterm.gui.get_appearance()),
keys = {
{ key=";", mods="CMD", action=wezterm.action.SpawnCommandInNewTab{args={"/opt/homebrew/bin/vim"}} },
-- Naviguate tabs
{ key = 'LeftArrow', mods = 'CMD', action = act.ActivateTabRelative(-1) },
{ key = 'RightArrow', mods = 'CMD', action = act.ActivateTabRelative(1) },
-- Split panes
{ key="\\", mods="CMD", action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}},
{ key="-", mods="CMD", action=wezterm.action{SplitVertical={domain="CurrentPaneDomain"}}},
-- Naviguate panes
{ key="h", mods="CMD", action=wezterm.action{ActivatePaneDirection="Left"}},
{ key="l", mods="CMD", action=wezterm.action{ActivatePaneDirection="Right"}},
{ key="k", mods="CMD", action=wezterm.action{ActivatePaneDirection="Up"}},
{ key="j", mods="CMD", action=wezterm.action{ActivatePaneDirection="Down"}},
-- Resize panes
{ key="LeftArrow", mods="CTRL|SHIFT", action=wezterm.action{AdjustPaneSize={"Left", 5}}},
{ key="RightArrow", mods="CTRL|SHIFT", action=wezterm.action{AdjustPaneSize={"Right", 5}}},
{ key="UpArrow", mods="CTRL|SHIFT", action=wezterm.action{AdjustPaneSize={"Up", 5}}},
{ key="DownArrow", mods="CTRL|SHIFT", action=wezterm.action{AdjustPaneSize={"Down", 5}}},
{ key = 'H', mods = 'SHIFT|CTRL', action = act.Search { CaseSensitiveString = '' }},
{ key = 'm', mods = 'CTRL', action = act.ShowLauncher },
{ key = "`", mods = "CTRL", action = wezterm.action.ToggleFullScreen },
},
send_composed_key_when_left_alt_is_pressed = true,
audible_bell = "Disabled",
--window_background_opacity = 0.9,
--
hide_tab_bar_if_only_one_tab = true, -- Hide tab bar if there's only one tab open
tab_bar_at_bottom = false, -- Move the tab bar to the bottom
use_fancy_tab_bar = true, -- Enable fancy tab bar
window_frame = {
active_titlebar_bg = '#2e3440',
inactive_titlebar_bg = '#2e3440',
},
scrollback_lines = 10000, -- Increase scrollback lines
enable_scroll_bar = true, -- Enable a scrollbar
mouse_bindings = {
{
event = {Down={streak=1, button="Right"}},
mods = "NONE",
action = wezterm.action{PasteFrom="PrimarySelection"},
},
{
event = {Up={streak=1, button="Left"}},
mods = "NONE",
action = wezterm.action{CompleteSelectionOrOpenLinkAtMouseCursor="PrimarySelection"},
},
},
colors = {
tab_bar = {
background = '#2e3440', -- Background color of the tab bar
active_tab = {
bg_color = '#88c0d0',
fg_color = '#2e3440',
intensity = 'Bold',
},
inactive_tab = {
bg_color = '#3b4252',
fg_color = '#d8dee9',
},
inactive_tab_hover = {
bg_color = '#4c566a',
fg_color = '#d8dee9',
},
new_tab = {
bg_color = '#3b4252',
fg_color = '#d8dee9',
},
new_tab_hover = {
bg_color = '#4c566a',
fg_color = '#d8dee9',
},
},
},
}