2021-01-19 23:35:41 +01:00
|
|
|
env:
|
|
|
|
TERM: alacritty
|
|
|
|
|
|
|
|
window:
|
|
|
|
decorations: transparent
|
|
|
|
padding:
|
|
|
|
x: 5
|
|
|
|
y: 25
|
|
|
|
|
2021-01-21 00:05:38 +01:00
|
|
|
dimensions:
|
|
|
|
columns: 164
|
|
|
|
lines: 42
|
|
|
|
|
2021-01-19 23:35:41 +01:00
|
|
|
scrolling:
|
2021-01-21 00:05:38 +01:00
|
|
|
history: 10000
|
2021-01-19 23:35:41 +01:00
|
|
|
|
|
|
|
# Display tabs using this many cells (changes require restart)
|
2021-01-21 00:05:38 +01:00
|
|
|
tabspaces: 2
|
2021-01-19 23:35:41 +01:00
|
|
|
|
|
|
|
# When true, bold text is drawn using the bright variant of colors.
|
|
|
|
draw_bold_text_with_bright_colors: true
|
|
|
|
|
|
|
|
font:
|
|
|
|
normal:
|
|
|
|
family: "Source Code Pro"
|
|
|
|
style: Regular
|
|
|
|
bold:
|
|
|
|
family: "Source Code Pro"
|
|
|
|
style: Semibold
|
|
|
|
italic:
|
|
|
|
family: "Source Code Pro"
|
|
|
|
bold_italic:
|
|
|
|
family: "Source Code Pro"
|
|
|
|
style: Bold italic
|
|
|
|
size: 14.0
|
|
|
|
offset:
|
|
|
|
x: 0
|
|
|
|
y: 6
|
|
|
|
glyph_offset:
|
|
|
|
x: 0
|
|
|
|
y: 3
|
|
|
|
|
|
|
|
# Better font rendering for mac
|
|
|
|
use_thin_strokes: true
|
|
|
|
|
|
|
|
background_opacity: 0.9
|
|
|
|
|
|
|
|
selection:
|
|
|
|
semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
|
|
|
|
save_to_clipboard: true
|
|
|
|
|
|
|
|
cursor:
|
|
|
|
style:
|
|
|
|
shape: Block
|
|
|
|
blinking: Always
|
|
|
|
blink_interval: 650
|
|
|
|
unfocused_hollow: true
|
|
|
|
thickness: 1
|
|
|
|
|
|
|
|
mouse:
|
|
|
|
hide_when_typing: true
|
|
|
|
|
2021-01-22 23:00:36 +01:00
|
|
|
# Send ESC (\x1b) before characters when alt is pressed.
|
|
|
|
alt_send_esc: false
|
|
|
|
|
2021-01-19 23:35:41 +01:00
|
|
|
shell:
|
|
|
|
program: /opt/homebrew/bin/tmux
|
|
|
|
args:
|
|
|
|
- a
|
|
|
|
- -d
|
|
|
|
|
|
|
|
# Setup some amazing custom key bindings here - Best thing is you can setup key bindings
|
|
|
|
# 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
|
|
|
|
key_bindings:
|
2021-01-21 00:05:38 +01:00
|
|
|
|
|
|
|
# Alacritty
|
|
|
|
- { key: N, mods: Command, action: SpawnNewInstance } # Spawn new instance
|
|
|
|
- { key: Key0, mods: Command, action: ResetFontSize } # Reset font size
|
|
|
|
- { key: Plus, mods: Command, action: IncreaseFontSize } # Increase 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
|
2021-01-23 23:00:02 +01:00
|
|
|
- { key: H, mods: Command, chars: "\x01\x70" } # Move to previous window
|
|
|
|
- { key: L, mods: Command, chars: "\x01\x6e" } # Move to next window
|
2021-01-21 00:05:38 +01:00
|
|
|
- { key: X, mods: Command, chars: "\x01\x78" } # Kill pane/window
|
|
|
|
- { key: A, mods: Command, chars: "\x01\x7c" } # Split pane vertically
|
|
|
|
- { key: S, mods: Command, chars: "\x01\x2d" } # Split pane horizontally
|
2021-01-21 23:47:08 +01:00
|
|
|
- { key: Z, mods: Command, chars: "\x01\x7a" } # Maximize pane
|
2021-01-23 23:00:02 +01:00
|
|
|
|
2021-01-21 00:05:38 +01:00
|
|
|
- { key: T, mods: Command|Shift, chars: "\x02\x63" } # Create window in nested session
|
2021-01-23 23:00:02 +01:00
|
|
|
- { key: H, mods: Command|Shift, chars: "\x02\x70" } # Move to previous window
|
|
|
|
- { key: L, mods: Command|Shift, chars: "\x02\x6e" } # Move to next window
|
2021-01-21 00:05:38 +01:00
|
|
|
- { 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: S, mods: Command|Shift, chars: "\x02\x2d" } # Split pane horizontally in nested session
|
2021-01-21 23:47:08 +01:00
|
|
|
- { key: Z, mods: Command|Shift, chars: "\x02\x7a" } # Maximize pane in nested session
|
2021-01-23 23:00:02 +01:00
|
|
|
|
2021-01-21 00:05:38 +01:00
|
|
|
## General key bindings
|
|
|
|
- { key: Comma, mods: Command, command:
|
2021-01-25 13:53:04 +01:00
|
|
|
{program: "sh", args: ["-c","open ~/.config/alacritty/"]} } # Open alacritty config directory
|
2021-01-21 00:05:38 +01:00
|
|
|
- { 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
|