Switch to wezterm from alacritty

This commit is contained in:
Daniel Lundin 2021-04-01 16:02:19 +02:00
parent 3242766670
commit ef36b6dd39
4 changed files with 116 additions and 88 deletions

View file

@ -1,81 +0,0 @@
window:
decorations: none
startup_mode: Maximized
font:
normal:
family: Iosevka Term SS09
style: Light
bold:
family: Iosevka Term SS09
style: Semibold
italic:
family: Iosevka Term Slab
style: Light Italic
bold_italic:
family: Iosevka Term Curly Slab
style: Extralight Italic
size: 12.0
offset:
x: 0
y: 0
glyph_offset:
x: 0
y: 0
cursor:
# Values for `style`:
# - ▇ Block
# - _ Underline
# - | Beam
style: Block
vi_mode_style: Beam
unfocused_hollow: true
thickness: 0.15
mouse:
hide_when_typing: true
url:
launcher:
program: /home/dln/bin/url-copy
colors:
primary:
# background: '#171a23'
# foreground: '#cfd8dc'
background: '#171717'
foreground: '#ded9ce'
normal:
black: '#000000'
red: '#ff605a'
green: '#b1e869'
yellow: '#ead89c'
blue: '#5da9f6'
magenta: '#e86aff'
cyan: '#82fff6'
white: '#ded9ce'
bright:
black: '#313131'
red: '#f58b7f'
green: '#dcf88f'
yellow: '#eee5b2'
blue: '#a5c7ff'
magenta: '#ddaaff'
cyan: '#b6fff9'
white: '#fefffe'
key_bindings:
- { key: V, mods: Alt, action: Paste }
- { key: C, mods: Alt, action: Copy }
- { key: V, mods: Shift|Alt, action: Paste }
- { key: C, mods: Shift|Alt, action: Copy }

109
.config/wezterm/wezterm.lua Normal file
View file

@ -0,0 +1,109 @@
local wezterm = require 'wezterm';
function font_with_fallback(name, params)
local names = {name, "Noto Color Emoji"}
return wezterm.font_with_fallback(names, params)
end
return {
font = font_with_fallback("Iosevka Term SS09 Light"),
font_rules = {
{
italic = false,
intensity = "Half",
font = font_with_fallback("Iosevka Term SS09 Thin")
},
{
italic = true,
intensity = "Normal",
font = font_with_fallback("Iosevka Term SS09 Light", {italic=true})
},
{
italic = true,
intensity = "Bold",
font = font_with_fallback("Iosevka Term Curly Slab XLt", {italic=true})
},
{
intensity = "Bold",
font = font_with_fallback("Iosevka Term SS09 Semibold")
},
},
freetype_load_target = "HorizontalLcd",
font_size = 12.0,
line_height = 1.0,
initial_cols = 120,
initial_rows = 40,
window_padding = {
left = 0,
right = 0,
top = 0,
bottom = 0,
},
enable_tab_bar = false,
enable_scroll_bar = false,
window_decorations = "NONE",
scrollback_lines = 5000,
check_for_updates = false,
keys = {
{key="C", mods="ALT|SHIFT", action="Copy"},
{key="V", mods="ALT|SHIFT", action="Paste"},
-- {key="1", mods="ALT", action=wezterm.action{ActivateTab=0}},
-- {key="2", mods="ALT", action=wezterm.action{ActivateTab=1}},
-- {key="3", mods="ALT", action=wezterm.action{ActivateTab=2}},
-- {key="4", mods="ALT", action=wezterm.action{ActivateTab=3}},
-- {key="5", mods="ALT", action=wezterm.action{ActivateTab=4}},
-- {key="6", mods="ALT", action=wezterm.action{ActivateTab=5}},
-- {key="7", mods="ALT", action=wezterm.action{ActivateTab=6}},
-- {key="8", mods="ALT", action=wezterm.action{ActivateTab=7}},
-- {key="9", mods="ALT", action=wezterm.action{ActivateTab=8}},
-- {key="0", mods="ALT", action=wezterm.action{ActivateTab=9}},
},
colors = {
foreground = "#ded9ce",
background = "#171717",
cursor_bg = "#FB8C00",
-- cursor_fg = "black",
cursor_border = "#FB8C00",
split = "#444444",
ansi = {
"#000000",
"#ff605a",
"#b1e869",
"#ead89c",
"#5da9f6",
"#e86aff",
"#82fff6",
"#ded9ce"
},
brights = {
"#313131",
"#f58b7f",
"#dcf88f",
"#eee5b2",
"#a5c7ff",
"#ddaaff",
"#b6fff9",
"#fefffe"
}
},
ssh_domains = {
{
name = "dln-dev",
remote_address = "dln-dev",
username = "dln",
}
},
}

View file

@ -3,8 +3,8 @@ Name=tmux devel
GenericName=tmux-devel
StartupWMClass=tmux-devel
Type=Application
TryExec=/home/dln/bin/alacritty
Icon=alacritty
TryExec=/usr/bin/wezterm
Icon=org.wezfurlong.wezterm
Terminal=false
Categories=System;TerminalEmulator;
Exec=/home/dln/bin/alacritty --class=tmux-devel -e ssh devel
Exec=/usr/bin/wezterm start --class=tmux-devel -- ssh devel

View file

@ -1,10 +1,10 @@
[Desktop Entry]
Name=tmux local
GenericName=tmux-local
StartupWMClass=tmux-local
Type=Application
TryExec=/home/dln/bin/alacritty
Icon=alacritty
TryExec=/usr/bin/wezterm
Icon=org.wezfurlong.wezterm
Terminal=false
Categories=System;TerminalEmulator;
StartupWMClass=tmux-local
Exec=/home/dln/bin/alacritty --class tmux-local -e tmux new-session -A -D -s 0
Exec=/usr/bin/wezterm start --class=tmux-local -- tmux new-session -A -D -s 0