#!/bin/bash echo " " # Step 1: Install Alacritty using pacman sudo pacman -Sy --noconfirm alacritty echo "✅ Alacritty installed" # Step 2: Create the Alacritty config directory mkdir -p ~/.config/alacritty echo "✅ Config directory created" # Step 3: Write your custom alacritty.toml configuration cat < ~/.config/alacritty/alacritty.toml [general] import = [ "~/.config/alacritty/themes/catppuccin_frappe.toml" ] [env] TERM = "xterm-256color" [window] padding.x = 10 padding.y = 10 dimensions.columns = 100 dimensions.lines = 30 decorations = "Buttonless" opacity = 0.95 blur = true option_as_alt = "Both" [font] normal.family = "Adwaita Mono" size = 13 EOF echo "✅ Alacritty config written" # Step 4. Create catpuccin theme mkdir -p ~/.config/alacritty/themes echo "✅ Themes directory created" cat < ~/.config/alacritty/themes/catppuccin_frappe.toml # Default colors [colors.primary] background = '#303446' # base foreground = '#C6D0F5' # text # Bright and dim foreground colors dim_foreground = '#C6D0F5' # text bright_foreground = '#C6D0F5' # text # Cursor colors [colors.cursor] text = '#303446' # base cursor = '#F2D5CF' # rosewater [colors.vi_mode_cursor] text = '#303446' # base cursor = '#BABBF1' # lavender # Search colors [colors.search.matches] foreground = '#303446' # base background = '#A5ADCE' # subtext0 [colors.search.focused_match] foreground = '#303446' # base background = '#A6D189' # green [colors.footer_bar] foreground = '#303446' # base background = '#A5ADCE' # subtext0 # Keyboard regex hints [colors.hints.start] foreground = '#303446' # base background = '#E5C890' # yellow [colors.hints.end] foreground = '#303446' # base background = '#A5ADCE' # subtext0 # Selection colors [colors.selection] text = '#303446' # base background = '#F2D5CF' # rosewater # Normal colors [colors.normal] black = '#51576D' # surface1 red = '#E78284' # red green = '#A6D189' # green yellow = '#E5C890' # yellow blue = '#8CAAEE' # blue magenta = '#F4B8E4' # pink cyan = '#81C8BE' # teal white = '#B5BFE2' # subtext1 # Bright colors [colors.bright] black = '#626880' # surface2 red = '#E78284' # red green = '#A6D189' # green yellow = '#E5C890' # yellow blue = '#8CAAEE' # blue magenta = '#F4B8E4' # pink cyan = '#81C8BE' # teal white = '#A5ADCE' # subtext0 # Dim colors [colors.dim] black = '#51576D' # surface1 red = '#E78284' # red green = '#A6D189' # green yellow = '#E5C890' # yellow blue = '#8CAAEE' # blue magenta = '#F4B8E4' # pink cyan = '#81C8BE' # teal white = '#B5BFE2' # subtext1 EOF echo "✅ Catpuccin Frappe theme config created" # Step 5: Notify user of success echo " " echo "You can now open Alacritty with 'alacritty' command"