add alacritty config

Amolith created

Change summary

dot_config/alacritty/alacritty.toml.tmpl | 35 +++++++++++++++++++++++++
1 file changed, 35 insertions(+)

Detailed changes

dot_config/alacritty/alacritty.toml.tmpl 🔗

@@ -0,0 +1,35 @@
+import = [
+{{- if eq .theme_variant "light" }}
+       "~/.config/alacritty/catppuccin-latte.toml",
+{{- else if eq .theme_variant "dark" }}
+       "~/.config/alacritty/catppuccin-macchiato.toml",
+{{- end }}
+]
+
+shell = "zsh"
+
+[env]
+TERM = "xterm-256color"
+
+[window]
+decorations = "None"
+padding = { x = 7, y = 5 }
+
+[font]
+normal = { family = "Berkeley Mono", style = "Regular" }
+
+[cursor]
+style = { blinking = "On" }
+blink_interval = 500
+
+[mouse]
+hide_when_typing = true
+
+[[hints.enabled]]
+command = "xdg-open"
+hyperlinks = true
+post_processing = true
+persist = true
+mouse.enabled = true
+binding = { key = "U", mods = "Control|Shift" }
+regex = "(ipfs:|xmpp:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file:|git://|ssh:|ftp://)[^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"