Alacritty: Code formatting

This commit is contained in:
Christian Baer 2021-04-28 17:23:21 +02:00
parent 560498c87b
commit 6ab5f4e594

View File

@ -26,7 +26,7 @@ font:
style: Regular style: Regular
bold: bold:
family: "Source Code Pro" family: "Source Code Pro"
style: Semibold style: Semibold
italic: italic:
family: "Source Code Pro" family: "Source Code Pro"
bold_italic: bold_italic:
@ -34,11 +34,11 @@ font:
style: Bold italic style: Bold italic
size: 14.0 size: 14.0
offset: offset:
x: 0 x: 0
y: 6 y: 6
glyph_offset: glyph_offset:
x: 0 x: 0
y: 3 y: 3
# Better font rendering for mac # Better font rendering for mac
use_thin_strokes: true use_thin_strokes: true
@ -56,7 +56,7 @@ cursor:
blink_interval: 650 blink_interval: 650
unfocused_hollow: true unfocused_hollow: true
thickness: 1 thickness: 1
mouse: mouse:
hide_when_typing: true hide_when_typing: true
@ -73,38 +73,40 @@ shell:
# using Mac's 'command' to control your tmux. # using Mac's 'command' to control your tmux.
# A great reference: https://arslan.io/2018/02/05/gpu-accelerated-terminal-alacritty/#make-alacritty-feel-like-iterm2 # A great reference: https://arslan.io/2018/02/05/gpu-accelerated-terminal-alacritty/#make-alacritty-feel-like-iterm2
key_bindings: key_bindings:
# Alacritty # Alacritty
- { key: N, mods: Command, action: SpawnNewInstance } # Spawn new instance - { key: N, mods: Command, action: SpawnNewInstance } # Spawn new instance
- { key: Key0, mods: Command, action: ResetFontSize } # Reset font size - { key: Key0, mods: Command, action: ResetFontSize } # Reset font size
- { key: Plus, mods: Command, action: IncreaseFontSize } # Increase font size - { key: Plus, mods: Command, action: IncreaseFontSize } # Increase font size
- { key: Minus, mods: Command, action: DecreaseFontSize } # Decrease font size - { key: Minus, mods: Command, action: DecreaseFontSize } # Decrease font size
# tmux
- { key: J, mods: Command, chars: "\x01\x29" } # Move to next session
- { key: K, mods: Command, chars: "\x01\x28" } # Move to previous session
- { key: T, mods: Command, chars: "\x01\x63" } # Create window # tmux
- { key: H, mods: Command, chars: "\x01\x70" } # Move to previous window - { key: J, mods: Command, chars: "\x01\x29" } # Move to next session
- { key: L, mods: Command, chars: "\x01\x6e" } # Move to next window - { key: K, mods: Command, chars: "\x01\x28" } # Move to previous session
- { key: X, mods: Command, chars: "\x01\x78" } # Kill pane/window
- { key: A, mods: Command, chars: "\x01\x7c" } # Split pane vertically - { key: T, mods: Command, chars: "\x01\x63" } # Create window
- { key: S, mods: Command, chars: "\x01\x2d" } # Split pane horizontally - { key: H, mods: Command, chars: "\x01\x70" } # Move to previous window
- { key: Z, mods: Command, chars: "\x01\x7a" } # Maximize pane - { key: L, mods: Command, chars: "\x01\x6e" } # Move to next window
- { key: X, mods: Command, chars: "\x01\x78" } # Kill pane/window
- { key: T, mods: Command|Shift, chars: "\x02\x63" } # Create window in nested session - { key: A, mods: Command, chars: "\x01\x7c" } # Split pane vertically
- { key: H, mods: Command|Shift, chars: "\x02\x70" } # Move to previous window - { key: S, mods: Command, chars: "\x01\x2d" } # Split pane horizontally
- { key: L, mods: Command|Shift, chars: "\x02\x6e" } # Move to next window - { key: Z, mods: Command, chars: "\x01\x7a" } # Maximize pane
- { key: X, mods: Command|Shift, chars: "\x02\x78" } # Kill pane/window in nested session
- { key: A, mods: Command|Shift, chars: "\x02\x7c" } # Split pane vertically in nested session - { key: T, mods: Command|Shift, chars: "\x02\x63" } # Create window in nested session
- { key: S, mods: Command|Shift, chars: "\x02\x2d" } # Split pane horizontally in nested session - { key: H, mods: Command|Shift, chars: "\x02\x70" } # Move to previous window
- { key: Z, mods: Command|Shift, chars: "\x02\x7a" } # Maximize pane in nested session - { key: L, mods: Command|Shift, chars: "\x02\x6e" } # Move to next window
- { key: X, mods: Command|Shift, chars: "\x02\x78" } # Kill pane/window in nested session
## General key bindings - { key: A, mods: Command|Shift, chars: "\x02\x7c" } # Split pane vertically in nested session
- { key: Comma, mods: Command, command: - { key: S, mods: Command|Shift, chars: "\x02\x2d" } # Split pane horizontally in nested session
{program: "sh", args: ["-c","open ~/.config/alacritty/"]} } # Open alacritty config directory - { key: Z, mods: Command|Shift, chars: "\x02\x7a" } # Maximize pane in nested session
- { key: Back, mods: Command, chars: "\x15" } # delete word/line
- { key: Left, mods: Alt, chars: "\x1bb" } # One word left ## General key bindings
- { key: Right, mods: Alt, chars: "\x1bf" } # One word right - {
- { key: Left, mods: Command, chars: "\x1bOH", mode: AppCursor } # Home key: Comma,
- { key: Right, mods: Command, chars: "\x1bOF", mode: AppCursor } # End mods: Command,
command: { program: "sh", args: ["-c", "open ~/.config/alacritty/"] },
} # Open alacritty config directory
- { key: Back, mods: Command, chars: "\x15" } # delete word/line
- { key: Left, mods: Alt, chars: "\x1bb" } # One word left
- { key: Right, mods: Alt, chars: "\x1bf" } # One word right
- { key: Left, mods: Command, chars: "\x1bOH", mode: AppCursor } # Home
- { key: Right, mods: Command, chars: "\x1bOF", mode: AppCursor } # End