From 340e990c70d2537d9f58f714b9ae75a81e62c93a Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Tue, 11 Jan 2022 22:32:30 +0100 Subject: [PATCH] [ALACRITTY] Add FiraCode NF + backgroud color --- .env | 1 + configs/alacritty/alacritty.yml | 4 ++++ install.sh | 1 + scripts/tools/alacritty/install.sh | 15 +++++++++++++++ 4 files changed, 21 insertions(+) create mode 100644 configs/alacritty/alacritty.yml create mode 100755 scripts/tools/alacritty/install.sh diff --git a/.env b/.env index eb6e508..32ec141 100644 --- a/.env +++ b/.env @@ -18,3 +18,4 @@ WITH_NEOVIM_CONFIG=yes WITH_LAZYGIT_CONFIG=yes WITH_ROFI_CONFIG=yes +WITH_ALACRITTY_CONFIG=yes diff --git a/configs/alacritty/alacritty.yml b/configs/alacritty/alacritty.yml new file mode 100644 index 0000000..6194a03 --- /dev/null +++ b/configs/alacritty/alacritty.yml @@ -0,0 +1,4 @@ +font: + normal: + family: FiraCode NF +background_opacity: 0.5 # Require `picom -f &` in .xinitrc \ No newline at end of file diff --git a/install.sh b/install.sh index c027653..102d85d 100755 --- a/install.sh +++ b/install.sh @@ -27,6 +27,7 @@ find ./scripts -type f -iname "*.sh" -exec chmod +x {} \; # Install and configure functionality ./scripts/tools/neovim/install.sh ./scripts/tools/rofi/install.sh +./scripts/tools/alacritty/install.sh ./scripts/window_manager/awesome/install.sh ./scripts/window_manager/i3/install.sh ./scripts/tools/fonts/install.sh \ No newline at end of file diff --git a/scripts/tools/alacritty/install.sh b/scripts/tools/alacritty/install.sh new file mode 100755 index 0000000..fba4119 --- /dev/null +++ b/scripts/tools/alacritty/install.sh @@ -0,0 +1,15 @@ +#!/bin/bash +source ./scripts/common.sh + +if [[ "$WITH_ALACRITTY_CONFIG" == 'yes' || "$WITH_ALACRITTY_CONFIG" == 'force' ]]; then + if [[ -d "$HOME/.config/alacritty" && "$WITH_ALACRITTY_CONFIG" == 'force' ]]; then + rm -rf "$HOME/.config/alacritty" + echo '[INFO] Alacritty config removed | Forced by environment variable' + fi + if [[ ! -d "$HOME/.config/alacritty" ]]; then + ln -s "$CWD/configs/alacritty" "$HOME/.config/alacritty" + echo "[INFO] Alacritty config linked with symbolic link : $CWD/configs/alacritty -> $HOME/.config/alacritty" + else + echo '[INFO] Alacritty config already linked' + fi +fi \ No newline at end of file