diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-08-09 14:17:49 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-08-09 14:17:49 +0200 |
| commit | 1c3f64b4a50d64e1e33a2937142937e6e265a9ad (patch) | |
| tree | b0d34fd394803df7b392b32184ca480f489eaf55 /.config/wezterm | |
| parent | 74bddf441aba5dbe605cab8a2d53c288fb26a0d5 (diff) | |
| download | dotfiles-1c3f64b4a50d64e1e33a2937142937e6e265a9ad.tar.gz dotfiles-1c3f64b4a50d64e1e33a2937142937e6e265a9ad.zip | |
Disabled wayland settings (conflicting with settings)
Diffstat (limited to '.config/wezterm')
| -rw-r--r-- | .config/wezterm/wezterm.lua | 172 |
1 files changed, 89 insertions, 83 deletions
diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index de48ad6..20e7490 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -1,4 +1,4 @@ -local wezterm = require 'wezterm' +local wezterm = require("wezterm") ---- Function to unset Ctrl+C keybinding --local function unsetCtrlCKeybinding(window) @@ -55,9 +55,9 @@ 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; + overrides.window_background_opacity = 1.0 elseif overrides.window_background_opacity == 1.0 then - overrides.window_background_opacity = 0.6; + overrides.window_background_opacity = 0.6 else overrides.window_background_opacity = nil end @@ -65,119 +65,125 @@ wezterm.on("toggle-opacity", function(window) end) return { - --front_end = "OpenGL", + front_end = "OpenGL", --font = wezterm.font 'JetBrains Mono', - font = wezterm.font_with_fallback { + font = wezterm.font_with_fallback({ { - family = 'JetBrains Mono', + family = "JetBrains Mono", --intensity = 'Normal', - weight = 'Medium', + weight = "Medium", italic = false, - harfbuzz_features = { 'calt=0', 'clig=0', 'liga=0' }, + harfbuzz_features = { "calt=0", "clig=0", "liga=0" }, }, - { family = 'Hack Nerd Font', weight = 'Medium' }, + { family = "Hack Nerd Font", weight = "Medium" }, { - family = 'Fira Code', - harfbuzz_features = { 'zero' } + family = "Fira Code", + harfbuzz_features = { "zero" }, }, - { family = 'Terminus', weight = 'Bold' }, - 'Noto Color Emoji', - }, - font_size = 9, - warn_about_missing_glyphs = false, + { 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, + 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', + event = { Up = { streak = 1, button = "Left" } }, + mods = "CTRL", action = wezterm.action.OpenLinkAtMouseCursor, }, }, - keys = { + 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 = "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.IncreaseFontSize - }, + key = "-", + mods = "CTRL", + action = wezterm.action.DecreaseFontSize, + }, + { + key = "=", + mods = "CTRL", + action = wezterm.action.IncreaseFontSize, + }, { - key = "0", - mods = "CTRL", - action = wezterm.action.ResetFontSize - }, + key = "0", + mods = "CTRL", + action = wezterm.action.ResetFontSize, + }, { - key = "v", - mods = "CTRL", - action = wezterm.action({ PasteFrom = "Clipboard" }), - }, + key = "v", + mods = "CTRL", + action = wezterm.action({ PasteFrom = "Clipboard" }), + }, --{ - -- key = "c", - -- mods = "CTRL", - -- action = wezterm.action({ CopyTo = "ClipboardAndPrimarySelection" }), - --}, + -- key = "c", + -- mods = "CTRL", + -- action = wezterm.action({ CopyTo = "ClipboardAndPrimarySelection" }), + --}, { - key="c", - mods="CTRL", + key = "c", + mods = "CTRL", action = wezterm.action_callback(function(window, pane) local has_selection = window:get_selection_text_for_pane(pane) ~= "" if has_selection then window:perform_action( - wezterm.action{CopyTo="ClipboardAndPrimarySelection"}, - pane) + wezterm.action({ CopyTo = "ClipboardAndPrimarySelection" }), + pane + ) window:perform_action("ClearSelection", pane) else window:perform_action( - wezterm.action{SendKey={key="c", mods="CTRL"}}, - pane) + wezterm.action({ SendKey = { key = "c", mods = "CTRL" } }), + pane + ) end - end) - } - }, - -- 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', + end), + }, + }, + -- 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', + 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, + -- 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, + -- General + -- X11 + enable_wayland = false, audible_bell = "Disabled", visual_bell = { @@ -185,11 +191,11 @@ return { fade_out_duration_ms = 5, target = "CursorColor", }, - automatically_reload_config = true, + automatically_reload_config = true, scrollback_lines = 3500, - --inactive_pane_hsb = { saturation = 1.0, brightness = 1.0 }, + --inactive_pane_hsb = { saturation = 1.0, brightness = 1.0 }, --text_background_opacity = 0.3, - window_background_opacity = 0.8, + 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 @@ -200,6 +206,6 @@ return { -- -- You can adjust the saturation also. -- saturation = 1.0, --}, - window_close_confirmation = "NeverPrompt", + window_close_confirmation = "NeverPrompt", --color_scheme = 'transparent', } |
