feat(wezterm): add wezterm
This commit is contained in:
parent
a4bff2a186
commit
210bc59571
2 changed files with 45 additions and 1 deletions
42
dotfiles/wezterm.lua
Normal file
42
dotfiles/wezterm.lua
Normal file
|
@ -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.*',
|
||||||
|
},
|
||||||
|
}
|
|
@ -51,7 +51,6 @@ in
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
etc = {
|
etc = {
|
||||||
"i3/config".source = ../dotfiles/i3/config;
|
|
||||||
"sway/config".source = ../dotfiles/sway/config;
|
"sway/config".source = ../dotfiles/sway/config;
|
||||||
"sway/status.toml".source = ../dotfiles/sway/status.toml;
|
"sway/status.toml".source = ../dotfiles/sway/status.toml;
|
||||||
"xdg/alacritty/alacritty.yml".text = ''
|
"xdg/alacritty/alacritty.yml".text = ''
|
||||||
|
@ -87,6 +86,7 @@ in
|
||||||
key_bindings:
|
key_bindings:
|
||||||
- { key: Escape, mods: Control, action: ToggleViMode }
|
- { key: Escape, mods: Control, action: ToggleViMode }
|
||||||
'';
|
'';
|
||||||
|
"wezterm.lua".source = ../dotfiles/wezterm.lua;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -175,6 +175,7 @@ in
|
||||||
pulseeffects-pw
|
pulseeffects-pw
|
||||||
qrencode
|
qrencode
|
||||||
uxplay
|
uxplay
|
||||||
|
wezterm
|
||||||
|
|
||||||
solaar
|
solaar
|
||||||
gdk-pixbuf
|
gdk-pixbuf
|
||||||
|
@ -203,6 +204,7 @@ in
|
||||||
export QT_QPA_PLATFORM=wayland-egl
|
export QT_QPA_PLATFORM=wayland-egl
|
||||||
export QT_WAYLAND_FORCE_DPI=96
|
export QT_WAYLAND_FORCE_DPI=96
|
||||||
export SDL_VIDEODRIVER=wayland
|
export SDL_VIDEODRIVER=wayland
|
||||||
|
export WEZTERM_CONFIG_FILE=/etc/wezterm.lua
|
||||||
export XDG_CURRENT_DESKTOP=sway
|
export XDG_CURRENT_DESKTOP=sway
|
||||||
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
|
export XDG_DATA_DIRS=${datadir}:$XDG_DATA_DIRS
|
||||||
export XDG_SESSION_TYPE=wayland
|
export XDG_SESSION_TYPE=wayland
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue