Created
October 13, 2022 01:40
-
-
Save LintaoAmons/9f37307c9e910ba8be62877803ffc4e1 to your computer and use it in GitHub Desktop.
Alacritty - Mac command mapping to Meta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Font configuration (changes require restart) | |
font: | |
normal: | |
family: Hack Nerd Font Mono | |
style: Regular | |
bold: | |
family: Hack Nerd Font Mono | |
style: Bold | |
italic: | |
family: Hack Nerd Font Mono | |
style: Italic | |
# Point size of the font | |
size: 20.0 | |
# Offset is the extra space around each character. offset.y can be thought of | |
# as modifying the linespacing, and offset.x as modifying the letter spacing. | |
offset: | |
x: 0 | |
y: 0 | |
# Glyph offset determines the locations of the glyphs within their cells with | |
# the default being at the bottom. Increase the x offset to move the glyph to | |
# the right, increase the y offset to move the glyph upward. | |
glyph_offset: | |
x: 0 | |
y: 0 | |
# Thin stroke font rendering (macOS only) | |
# | |
# Thin strokes are suitable for retina displays, but for non-retina you | |
# probably want this set to false. | |
# | |
# macOS >= 10.14.x: | |
# | |
# If the font quality on non-retina display looks bad then set | |
# `use_thin_strokes` to `true` and enable font smoothing by running the | |
# following command: | |
# `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO` | |
# | |
# This is a global setting and will require a log out or restart to take | |
# effect. | |
use_thin_strokes: true | |
# When true, bold text is drawn using the bright variant of colors. | |
draw_bold_text_with_bright_colors: false | |
key_bindings: | |
- { key: Q, mods: Control, chars: "\x11" } | |
- { key: A, mods: Command, chars: "\x1ba" } | |
- { key: B, mods: Command, chars: "\x1bb" } | |
- { key: C, mods: Command, chars: "\x1bc" } | |
- { key: D, mods: Command, chars: "\x1bd" } | |
- { key: E, mods: Command, chars: "\x1be" } | |
- { key: F, mods: Command, chars: "\x1bf" } | |
- { key: G, mods: Command, chars: "\x1bg" } | |
- { key: H, mods: Command, chars: "\x1bh" } | |
- { key: I, mods: Command, chars: "\x1bi" } | |
- { key: J, mods: Command, chars: "\x1bj" } | |
- { key: K, mods: Command, chars: "\x1bk" } | |
- { key: L, mods: Command, chars: "\x1bl" } | |
- { key: M, mods: Command, chars: "\x1bm" } | |
- { key: N, mods: Command, chars: "\x1bn" } | |
- { key: O, mods: Command, chars: "\x1bo" } | |
- { key: P, mods: Command, chars: "\x1bp" } | |
- { key: Q, mods: Command, chars: "\x1bq" } | |
- { key: R, mods: Command, chars: "\x1br" } | |
- { key: S, mods: Command, chars: "\x1bs" } | |
- { key: T, mods: Command, chars: "\x1bt" } | |
- { key: U, mods: Command, chars: "\x1bu" } | |
- { key: V, mods: Command, chars: "\x1bv" } | |
- { key: W, mods: Command, chars: "\x1bw" } | |
- { key: X, mods: Command, chars: "\x1bx" } | |
- { key: Y, mods: Command, chars: "\x1by" } | |
- { key: Z, mods: Command, chars: "\x1bz" } | |
- { key: A, mods: Control|Command, chars: "\x1bA" } | |
- { key: B, mods: Control|Command, chars: "\x1bB" } | |
- { key: C, mods: Control|Command, chars: "\x1bC" } | |
- { key: D, mods: Control|Command, chars: "\x1bD" } | |
- { key: E, mods: Control|Command, chars: "\x1bE" } | |
- { key: F, mods: Control|Command, chars: "\x1bF" } | |
- { key: G, mods: Control|Command, chars: "\x1bG" } | |
- { key: H, mods: Control|Command, chars: "\x1bH" } | |
- { key: I, mods: Control|Command, chars: "\x1bI" } | |
- { key: J, mods: Control|Command, chars: "\x1bJ" } | |
- { key: K, mods: Control|Command, chars: "\x1bK" } | |
- { key: L, mods: Control|Command, chars: "\x1bL" } | |
- { key: M, mods: Control|Command, chars: "\x1bM" } | |
- { key: N, mods: Control|Command, chars: "\x1bN" } | |
- { key: O, mods: Control|Command, chars: "\x1bO" } | |
- { key: P, mods: Control|Command, chars: "\x1bP" } | |
- { key: Q, mods: Control|Command, chars: "\x1bQ" } | |
- { key: R, mods: Control|Command, chars: "\x1bR" } | |
- { key: S, mods: Control|Command, chars: "\x1bS" } | |
- { key: T, mods: Control|Command, chars: "\x1bT" } | |
- { key: U, mods: Control|Command, chars: "\x1bU" } | |
- { key: V, mods: Control|Command, chars: "\x1bV" } | |
- { key: W, mods: Control|Command, chars: "\x1bW" } | |
- { key: X, mods: Control|Command, chars: "\x1bX" } | |
- { key: Y, mods: Control|Command, chars: "\x1bY" } | |
- { key: Z, mods: Control|Command, chars: "\x1bZ" } | |
- { key: Key1, mods: Command, chars: "\x1b1" } | |
- { key: Key2, mods: Command, chars: "\x1b2" } | |
- { key: Key3, mods: Command, chars: "\x1b3" } | |
- { key: Key4, mods: Command, chars: "\x1b4" } | |
- { key: Key5, mods: Command, chars: "\x1b5" } | |
- { key: Key6, mods: Command, chars: "\x1b6" } | |
- { key: Key7, mods: Command, chars: "\x1b7" } | |
- { key: Key8, mods: Command, chars: "\x1b8" } | |
- { key: Key9, mods: Command, chars: "\x1b9" } | |
- { key: Key0, mods: Command, chars: "\x1b0" } | |
- { key: Space, mods: Control, chars: "\x00" } # Ctrl + Space | |
- { key: Grave, mods: Command, chars: "\x1b`" } # Command + ` | |
- { key: Grave, mods: Command|Shift, chars: "\x1b~" } # Command + ~ | |
- { key: Period, mods: Command, chars: "\x1b." } # Command + . | |
- { key: Key8, mods: Command|Shift, chars: "\x1b*" } # Command + * | |
- { key: Key3, mods: Command|Shift, chars: "\x1b#" } # Command + # | |
- { key: Period, mods: Command|Shift, chars: "\x1b>" } # Command + > | |
- { key: Comma, mods: Command|Shift, chars: "\x1b<" } # Command + < | |
- { key: Minus, mods: Command|Shift, chars: "\x1b_" } # Command + _ | |
- { key: Key5, mods: Command|Shift, chars: "\x1b%" } # Command + % | |
- { key: Key6, mods: Command|Shift, chars: "\x1b^" } # Command + ^ | |
- { key: Backslash, mods: Command, chars: "\x1b\\" } # Command + \ | |
- { key: Backslash, mods: Command|Shift, chars: "\x1b|" } # Command + | | |
- { key: V, mods: Command, action: Paste } | |
- { key: C, mods: Command, action: Copy } | |
# - { key: M, mods: Command|Control, chars: "\x1b\x07"} This didn't work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment