Add configuration for alacritty

This commit is contained in:
Alexander Hess 2026-08-13 17:24:00 +02:00
commit 084a184d34
Signed by: alexander
GPG key ID: B46EDB4DFC26805D
4 changed files with 107 additions and 0 deletions

View file

@ -0,0 +1,8 @@
# `alacritty`-related Configurations
This folder contains
the [config](./alacritty.toml)
for the [`alacritty`](https://alacritty.org/) terminal.
`colors.toml` is untracked
and written by [`color-palette`](../../.local/bin/color-palette).

View file

@ -0,0 +1,97 @@
[general]
import = ["colors.toml"]
[bell]
animation = "EaseOutSine"
duration = 250
[cursor]
blink_interval = 500
blink_timeout = 0
thickness = 0.1
unfocused_hollow = true
[cursor.style]
blinking = "On"
shape = "Block"
[font]
size = 12.0
[font.bold]
family = "FiraCode Nerd Font"
style = "Bold"
[font.bold_italic]
family = "FiraCode Nerd Font"
style = "Semibold"
[font.italic]
family = "FiraCode Nerd Font"
style = "Light"
[font.normal]
family = "FiraCode Nerd Font"
style = "Regular"
[font.offset]
x = 0
y = 0
[[keyboard.bindings]]
action = "SpawnNewInstance"
key = "Return"
mods = "Control|Shift"
[scrolling]
history = 99999
multiplier = 10
[terminal.shell]
args = ["-l"]
program = "/usr/bin/zsh"
[window]
decorations = "none"
dynamic_padding = true
opacity = 0.90
[window.padding]
x = 10
y = 10

View file

@ -7,6 +7,7 @@ if [ "$SHLVL" = 1 ]; then # ~ if on the outermost shell instance
# Clear screen and scrollback without a `terminfo` lookup
# because `clear` fails on hosts that do not know `$TERM`
# (e.g., `alacritty`)
printf '\033[H\033[2J\033[3J'
# On a real Linux `tty`, run `clear_console` for a full reset also

View file

@ -11,6 +11,7 @@ set -eu
XDG_BIN_HOME="${XDG_BIN_HOME:-$HOME/.local/bin}"
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"