Skip to main content

Alacritty

A GPU-accelerated terminal emulator written in Rust

Setup

Keyboard Mappings

The problem with keyboard input on terminals are described here, which can be fixed with keyboard mappings, e.g.:

[keyboard]
bindings = [
{ key = "I", mods = "Control", chars = "\u001b[105;5u" },
{ key = "Tab", mods = "Control", chars = "\u001b[9;5u" },
{ key = "Tab", mods = "Control | Shift", chars = "\u001b[9;6u" },
# ...
]

showkey -a can be very useful to find the keycode and verify the mappings.

Display Emoji

Install Noto Color Emoji and then add following content to $XDG_CONFIG_HOME/fontconfig/fonts.conf1:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>Noto Color Emoji</family>
</prefer>
</alias>
</fontconfig>

Footnotes

  1. from https://github.com/alacritty/alacritty/issues/153#issuecomment-1030653239