alacritty fixes

This commit is contained in:
Dmitry Chumak
2025-04-23 20:21:06 +03:00
parent 04aef1e179
commit 909acaa69f
2 changed files with 23 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ multiplier = 3
[font] [font]
size = 13 size = 13
# use_thin_strokes = true # use_thin_strokes = true
# on mac - https://petar.dev/notes/crisp-fonts-alacritty/
[font.normal] [font.normal]
family = "RecMonoLinear Nerd Font Mono" family = "RecMonoLinear Nerd Font Mono"
@@ -86,5 +87,24 @@ bindings = [
{ key = "X", mods = "Command", chars = "\u0018" }, { key = "X", mods = "Command", chars = "\u0018" },
{ key = "Y", mods = "Command", chars = "\u0019" }, { key = "Y", mods = "Command", chars = "\u0019" },
{ key = "Z", mods = "Command", chars = "\u001a" }, { key = "Z", mods = "Command", chars = "\u001a" },
# Ctrl-LeftArrow escape sequence, ^[[1;5D
# \u001b: ESCAPE character
# \u005b: LEFT SQUARE BRACKET [
# \u0031: DIGIT ONE 1
# \u003b: SEMICOLON ;
# \u0035: DIGIT FIVE 5
# \u0044: LATIN CAPITAL LETTER D
{ key = "ArrowLeft", mods = "Command", chars = "\u001b\u005b\u0031\u003b\u0035\u0044" },
# Ctrl-RightArrow escape sequence, ^[[1;5D
# ^[[1;5C 27 0033 0x1b
# 91 0133 0x5b
# 49 0061 0x31
# 59 0073 0x3b
# 53 0065 0x35
# 67 0103 0x43
{ key = "ArrowRight", mods = "Command", chars = "\u001b\u005b\u0031\u003b\u0035\u0043" },
{ key = "ArrowDown", mods = "Command", chars = "\u001b\u005b\u0031\u003b\u0035\u0042" },
{ key = "F", mods = "Control", action = "ToggleMaximized" }, { key = "F", mods = "Control", action = "ToggleMaximized" },
] ]

View File

@@ -1,4 +1,6 @@
set -g default-terminal "screen-256color" set -g default-terminal "xterm-256color"
set-option -gas terminal-overrides "*:Tc"
set-option -gas terminal-overrides "*:RGB"
set -g mouse on set -g mouse on
set -g set-clipboard external set -g set-clipboard external
set -g escape-time 10 # https://www.johnhawthorn.com/2012/09/vi-escape-delays/ set -g escape-time 10 # https://www.johnhawthorn.com/2012/09/vi-escape-delays/