From 924119870e29cb4e6e25333c35bb01bdb1f3ecda Mon Sep 17 00:00:00 2001 From: Felix Nehrke Date: Sun, 10 Aug 2025 08:19:46 +0200 Subject: [PATCH] Define dedicated alacritty-configs per env These then have to be soft-linked at the target marchine --- .../{alacritty.toml => alacritty.linux.toml} | 6 +++ .config/alacritty/alacritty.macos.toml | 47 +++++++++++++++++++ 2 files changed, 53 insertions(+) rename .config/alacritty/{alacritty.toml => alacritty.linux.toml} (70%) create mode 100644 .config/alacritty/alacritty.macos.toml diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.linux.toml similarity index 70% rename from .config/alacritty/alacritty.toml rename to .config/alacritty/alacritty.linux.toml index 0ce41b9..e1eb345 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.linux.toml @@ -1,5 +1,11 @@ +import = [ + "~/.config/alacritty/themes/themes/gruvbox_dark.toml" +] + [font] size = 9.0 +offset = { x = 0, y = 3 } +glyph_offset = { x = 0, y = -1 } # The NerdFont of ComitMono is created with: https://github.com/ryanoasis/nerd-fonts?tab=readme-ov-file#font-patcher # normal = { family = "ComicMono Nerd Font", style = "Regular" } normal = { family = "ComicMono Nerd Font", style = "Regular" } diff --git a/.config/alacritty/alacritty.macos.toml b/.config/alacritty/alacritty.macos.toml new file mode 100644 index 0000000..e249ee2 --- /dev/null +++ b/.config/alacritty/alacritty.macos.toml @@ -0,0 +1,47 @@ +import = [ + "~/.config/alacritty/themes/themes/gruvbox_dark.toml" +] + +[window] +opacity = 0.96 + +[colors] +transparent_background_colors = true + +[font] +size = 15.0 +offset = { x = 0, y = 3 } +glyph_offset = { x = 0, y = -1 } +# The NerdFont of ComitMono is created with: https://github.com/ryanoasis/nerd-fonts?tab=readme-ov-file#font-patcher +# normal = { family = "ComicMono Nerd Font", style = "Regular" } +normal = { family = "ComicMono Nerd Font", style = "Regular" } + +[[keyboard.bindings]] +key = "Left" +mods = "Alt" +chars = "\u001BB" + +[[keyboard.bindings]] +key = "Right" +mods = "Alt" +chars = "\u001BF" + +[[keyboard.bindings]] +key = "Left" +mods = "Super" +chars = "\u0001" + +[[keyboard.bindings]] +key = "Right" +mods = "Super" +chars = "\u0005" + +[[mouse.bindings]] +mouse = "Middle" +action = "Paste" + +[shell] +program = "/bin/bash" + +[selection] +save_to_clipboard = true