Added chromatic repo

This commit is contained in:
2025-03-15 22:03:50 +01:00
parent df8bfc3e75
commit 3c0b78d8f2

View File

@@ -26,10 +26,11 @@ add_repositories() {
"BlackArch" "Add BlackArch repository" OFF
"Chaotic.cx" "Add Chaotic.cx repository" OFF
"CachyOS" "Add CachyOS repository" OFF
"Chromatic" "Add Chromatic repository" OFF
)
selected_repos=$(whiptail --title "Add Repositories" --checklist \
"Choose the repositories you want to add:" 20 78 3 \
"Choose the repositories you want to add:" 20 78 4 \
"${options[@]}" 3>&1 1>&2 2>&3)
for repo in $selected_repos; do
@@ -66,8 +67,21 @@ add_repositories() {
else
echo "CachyOS repository is already installed."
fi
;;
esac
;;
"\"Chromatic\"")
if ! grep -q "\[chromatic\]" /etc/pacman.conf; then
sudo pacman-key --recv-key 6EFB412EBDDD1853DF71F4B625AE803AA8C39062 --keyserver keys.openpgp.org
sudo pacman-key --lsign-key 6EFB412EBDDD1853DF71F4B625AE803AA8C39062
sudo pacman -U --noconfirm 'https://mirror.trap.moe/chromatic/x86_64/chromatic-keyring-1.0-1-any.pkg.tar.zst'
sudo pacman -U --noconfirm 'https://mirror.trap.moe/chromatic/x86_64/chromatic-mirrorlist-20250315-1-any.pkg.tar.zst'
echo '[chromatic]' | sudo tee -a /etc/pacman.conf
echo 'Include = /etc/pacman.d/chromatic-mirrorlist' | sudo tee -a /etc/pacman.conf
sudo pacman -Sy --noconfirm chromatic-keyring
else
echo "Chromatic repository is already installed."
fi
;;
esac
done
}