init: new dotfile configuration
Remove all org files using a new script to more config over, The old org file configuaration were great but required org. This new version only requires the scripts that is included in the repo. The configuration are all done but have not ported the theming system yet. Signed-off-by: Steve Beaulac <steve@sagacity.ca> Change-Id: I14cd7fe058a71c8ba9d6d35397dc8d7e6a6a6964
This commit is contained in:
Executable
+52
@@ -0,0 +1,52 @@
|
||||
#!/bin/sh -e
|
||||
# SjB TODO:
|
||||
# - install public keys
|
||||
|
||||
sudo pacman -Syu --noconfirm
|
||||
|
||||
if [[ "$(uname -m)" == "x86_64" ]]; then
|
||||
|
||||
if ! pacman-key --list-keys 882DCFE48E2051D48E2562ABF3B607488DB35A47 >/dev/null 2>&1; then
|
||||
sudo pacman-key --recv-key 882DCFE48E2051D48E2562ABF3B607488DB35A47 && sudo pacman-key --lsign-key 882DCFE48E2051D48E2562ABF3B607488DB35A47
|
||||
fi
|
||||
|
||||
if sudo pacman -U --noconfirm https://cdn77.cachyos.org/repo/x86_64/cachyos/cachyos-keyring-20240331-1-any.pkg.tar.zst &&
|
||||
sudo pacman -U --noconfirm https://cdn77.cachyos.org/repo/x86_64/cachyos/cachyos-mirrorlist-22-1-any.pkg.tar.zst; then
|
||||
|
||||
if ! grep -q "^\[cachyos\]" /etc/pacman.conf; then
|
||||
echo -e '\n[cachyos]\nInclude = /etc/pacman.d/cachyos-mirrorlist' | sudo tee -a /etc/pacman.conf >/dev/null
|
||||
fi
|
||||
|
||||
if ! grep -q "^\[multilib\]" /etc/pacman.conf; then
|
||||
sudo sed -i '/^#\[multilib\]/,/^#Include/ s/^#//' /etc/pacman.conf
|
||||
fi
|
||||
|
||||
sudo pacman -Sy --needed --noconfirm chwd || exit 1
|
||||
sudo chwd -a || exit 1
|
||||
else
|
||||
echo "Failed to install Cachyos, so won't include it in pacman config!"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ ! -x "$(command -v paru)" ]]; then
|
||||
sudo pacman -S --noconfirm --needed paru || exit 1
|
||||
fi
|
||||
|
||||
paru -Sy --noconfirm \
|
||||
cachyos-hello \
|
||||
cachyos-hooks \
|
||||
cachyos-kernel-manager \
|
||||
cachyos-keyring \
|
||||
cachyos-mirrorlist \
|
||||
cachyos-nord-gtk-theme-git \
|
||||
cachyos-packageinstaller \
|
||||
cachyos-rate-mirrors \
|
||||
cachyos-settings \
|
||||
cachyos-v3-mirrorlist \
|
||||
cachyos-v4-mirrorlist \
|
||||
cachyos-wallpapers \
|
||||
cachyos-fish-config \
|
||||
linux-cachyos \
|
||||
linux-cachyos-headers \
|
||||
linux-cachyos-sched-ext-headers
|
||||
|
||||
Reference in New Issue
Block a user