aboutsummaryrefslogtreecommitdiff
path: root/.config/wezterm/wezterm.lua
blob: 8b42bafccb3d4c715a994da7141b99060765a4dd (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
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
local wezterm = require 'wezterm'

wezterm.on("toggle-opacity", function(window)
  local overrides = window:get_config_overrides() or {}
  if not overrides.window_background_opacity then
    overrides.window_background_opacity = 1.0;
  elseif overrides.window_background_opacity == 1.0 then
    overrides.window_background_opacity = 0.6;
  else
    overrides.window_background_opacity = nil
  end
  window:set_config_overrides(overrides)
end)

return {
  --front_end = "OpenGL",
  --font = wezterm.font 'JetBrains Mono',
  font = wezterm.font_with_fallback {
    {
      family = 'JetBrains Mono',
      --intensity = 'Normal',
      weight = 'Medium',
      italic = false,
      --harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' },
    },
    { family = 'Hack Nerd Font', weight = 'Medium' },
    {
      family = 'Fira Code',
      harfbuzz_features = { 'zero' }
    },
    { family = 'Terminus', weight = 'Bold' },
    'Noto Color Emoji',
  },
	font_size = 9,
	warn_about_missing_glyphs = false,
  adjust_window_size_when_changing_font_size = false,
	line_height = 1.0,
	--dpi = 96.0,
	-- Keybinds
	disable_default_key_bindings = true,
  use_dead_keys = false,
  mouse_bindings = {
    -- Ctrl-click will open the link under the mouse cursor
    {
      event = { Up = { streak = 1, button = 'Left' } },
      mods = 'CTRL',
      action = wezterm.action.OpenLinkAtMouseCursor,
    },
  },
	keys = {
    --leader = { key = 'a', mods = 'CTRL', timeout_milliseconds = 1000 },
    {key="O", mods= "CTRL|SHIFT", action=wezterm.action{EmitEvent="toggle-opacity"}},
    {key = 'R', mods = 'CTRL', action = 'ReloadConfiguration' },
    {key = 'Y', mods = 'CTRL', action = 'ShowDebugOverlay' },
    {
    key = "-",
			mods = "CTRL",
			action = wezterm.action.DecreaseFontSize
		},
    {
    key = "=",
			mods = "CTRL",
			action = wezterm.action.IncreaseFontSize
		},
    {
    key = "0",
			mods = "CTRL",
			action = wezterm.action.ResetFontSize
		},
    {
    key = "v",
			mods = "CTRL",
			action = wezterm.action({ PasteFrom = "Clipboard" }),
		},
		{
			key = "c",
			mods = "CTRL",
			action = wezterm.action({ CopyTo = "ClipboardAndPrimarySelection" }),
		},
	},
	-- Aesthetic Night Colorscheme
	--bold_brightens_ansi_colors = true,
	-- Padding
	window_padding = {
		left = 5,
		right = 5,
		top = 6,
		bottom = 4,
	},
		-- Cursor style
	--default_cursor_style = "BlinkingUnderline",
  default_cursor_style = 'BlinkingBar',
  cursor_blink_rate = 700,
  -- needed to prevent 'easing' from using 40%+ cpu util ...
  --animation_fps = 1,
  force_reverse_video_cursor = true,
	colors = {
	  cursor_bg = 'white',
    compose_cursor = 'orange',
	  --cursor_border = 'white',
  },

	-- Tab Bar
	enable_tab_bar = false,
	--hide_tab_bar_if_only_one_tab = true,
	--show_tab_index_in_tab_bar = false,
	tab_bar_at_bottom = false,

	-- General
	-- X11
	--enable_wayland = true,
  audible_bell = "Disabled",

  visual_bell = {
    fade_in_duration_ms = 5,
    fade_out_duration_ms = 5,
    target = "CursorColor",
  },
	automatically_reload_config = true,
  scrollback_lines = 3500,
	--inactive_pane_hsb = { saturation = 1.0, brightness = 1.0 },
  --text_background_opacity = 0.3,
	window_background_opacity = 0.8,
  --window_background_image = '/path/to/wallpaper.jpg',
  --window_background_image_hsb = {
  --  -- Darken the background image by reducing it to 1/3rd
  --  brightness = 0.3,
  --  -- You can adjust the hue by scaling its value.
  --  -- a multiplier of 1.0 leaves the value unchanged.
  --  hue = 1.0,
  --  -- You can adjust the saturation also.
  --  saturation = 1.0,
  --},
	window_close_confirmation = "NeverPrompt",
  --color_scheme = 'transparent',
}