From 210bc59571fafd50d6c712ed9b877828113da42e Mon Sep 17 00:00:00 2001 From: Stefan Schwarz Date: Fri, 24 Mar 2023 08:44:33 +0100 Subject: [PATCH] feat(wezterm): add wezterm --- dotfiles/wezterm.lua | 42 ++++++++++++++++++++++++++++++++++++++++++ roles/desktop.nix | 4 +++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 dotfiles/wezterm.lua diff --git a/dotfiles/wezterm.lua b/dotfiles/wezterm.lua new file mode 100644 index 0000000..8c3982e --- /dev/null +++ b/dotfiles/wezterm.lua @@ -0,0 +1,42 @@ +local wezterm = require 'wezterm'; + +return { + audible_bell = "Disabled", + bold_brightens_ansi_colors = true, + color_scheme = "One Light (base16)", + enable_tab_bar = false, + enable_wayland = true, + font_size = 12, + font = wezterm.font("CaskaydiaCove Nerd Font"), + window_background_opacity = 0.97, + window_close_confirmation = 'NeverPrompt', + default_prog = { '/run/current-system/sw/bin/bash' }, + + selection_fg = 'black', + selection_bg = '#fafafa', + + keys = { + { + key = 'Escape', + mods = 'CTRL', + action = wezterm.action.QuickSelect, + }, + }, + + window_padding = { + left = 0, + right = 0, + top = 0, + bottom = 0, + }, + + quick_select_patterns = { + '^([^ ]+) +(?:ClusterIP|Bound)', + '^([^ ]+) +(?:[0-9]+/[0-9]+)', + '^([^ ]+) +(?:[0-9]+ )', + '^([^ ]+) +(?:Opaque|kubernetes\\.io|helm\\.sh)', + '^([^ ]+) +(?:Active)', + '[^ ]+@[^ ]+.service', + 'git push.*', + }, +} diff --git a/roles/desktop.nix b/roles/desktop.nix index b8d115a..d449adc 100644 --- a/roles/desktop.nix +++ b/roles/desktop.nix @@ -51,7 +51,6 @@ in environment = { etc = { - "i3/config".source = ../dotfiles/i3/config; "sway/config".source = ../dotfiles/sway/config; "sway/status.toml".source = ../dotfiles/sway/status.toml; "xdg/alacritty/alacritty.yml".text = '' @@ -87,6 +86,7 @@ in key_bindings: - { key: Escape, mods: Control, action: ToggleViMode } ''; + "wezterm.lua".source = ../dotfiles/wezterm.lua; }; }; @@ -175,6 +175,7 @@ in pulseeffects-pw qrencode uxplay + wezterm solaar gdk-pixbuf @@ -203,6 +204,7 @@ in export QT_QPA_PLATFORM=wayland-egl export QT_WAYLAND_FORCE_DPI=96 export SDL_VIDEODRIVER=wayland + export WEZTERM_CONFIG_FILE=/etc/wezterm.lua export XDG_CURRENT_DESKTOP=sway export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS export XDG_SESSION_TYPE=wayland