Added configs for new packages, removed old ones and updated README
This commit is contained in:
parent
5bb231dcee
commit
3470ffdfd7
17 changed files with 897 additions and 278 deletions
55
setup.sh
55
setup.sh
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh
|
||||
version="Beta 25.04.04-2"
|
||||
version="Beta 26.04.27-1"
|
||||
|
||||
echo -e "Atlas Desktop Installer - ${version}\n"
|
||||
echo "Atlas Desktop Installer - ${version}"
|
||||
echo
|
||||
|
||||
# Definitions
|
||||
|
||||
|
|
@ -10,27 +11,31 @@ script_path=$PWD
|
|||
pkgs_path="${script_path}/packages"
|
||||
config_path="${script_path}/config"
|
||||
CPU_vendor=$(lscpu | grep Vendor | awk '{print $NF}')
|
||||
dotfiles_path="~/.dotfiles"
|
||||
dotfiles_path="$HOME/.dotfiles"
|
||||
|
||||
|
||||
## Functions
|
||||
function install() {
|
||||
echo -e "\nDownloading $1 packages...\n"
|
||||
sudo pacman -Syu --noconfirm --color auto $(cat $pkgs_path/$1.pkgs)
|
||||
echo -e "\n\nDone\n"
|
||||
install() {
|
||||
echo
|
||||
echo "Downloading $1 packages..."
|
||||
echo
|
||||
sudo pacman -Syu --noconfirm --color auto "$(cat "$pkgs_path"/"$1".pkgs)"
|
||||
printf "\n\nDone\n\n"
|
||||
}
|
||||
function install_aur() {
|
||||
echo -e "\nDownloading $1 packages...\n"
|
||||
paru -Syu --noconfirm --color auto $(cat $pkgs_path/$1.pkgs)
|
||||
echo -e "\nDone\n"
|
||||
install_aur() {
|
||||
echo
|
||||
echo "Downloading $1 packages..."
|
||||
echo
|
||||
paru -Syu --noconfirm --color auto "$(cat "$pkgs_path"/"$1".pkgs)"
|
||||
printf "\n\nDone\n\n"
|
||||
}
|
||||
|
||||
|
||||
# Checks
|
||||
|
||||
## Sudo installed
|
||||
pacman -Q sudo > /dev/null
|
||||
if [ $? != 0 ]; then
|
||||
|
||||
if ! pacman -Q sudo > /dev/null; then
|
||||
echo "Please install 'sudo' first"
|
||||
exit 1
|
||||
fi
|
||||
|
|
@ -59,7 +64,7 @@ install desktop
|
|||
install theming
|
||||
|
||||
## Vendor specific packages
|
||||
if [ $CPU_vendor == "Genuine Intel" ]; then
|
||||
if [ "$CPU_vendor" = "Genuine Intel" ]; then
|
||||
install intel
|
||||
fi
|
||||
|
||||
|
|
@ -68,7 +73,7 @@ git clone https://aur.archlinux.org/paru.git /tmp/paru &&
|
|||
echo "Installing paru" &&
|
||||
cd /tmp/paru &&
|
||||
makepkg -si
|
||||
cd $script_path
|
||||
cd "$script_path" || exit 1
|
||||
|
||||
## AUR packages
|
||||
install_aur aur
|
||||
|
|
@ -76,33 +81,33 @@ install_aur aur
|
|||
|
||||
# Configuration
|
||||
|
||||
echo -e "\n--- Configuration ---\n"
|
||||
printf "\n--- Configuration ---\n\n"
|
||||
|
||||
## Dotfiles
|
||||
echo "Copying configuration files"
|
||||
cp -r $config_path $dotfiles_path &&
|
||||
cd $dotfiles_path &&
|
||||
cp -r "$config_path" "$dotfiles_path" &&
|
||||
cd "$dotfiles_path" &&
|
||||
stow .
|
||||
cd $script_path
|
||||
cd "$script_path" || exit 1
|
||||
|
||||
## Swap (Zram)
|
||||
is_zram_active=$(sudo systemctl is-active systemd-zram-setup@zram0.service)
|
||||
if [ is_zram_active != "active" ]; then
|
||||
echo -e "\n========================================"
|
||||
if [ "$is_zram_active" != "active" ]; then
|
||||
printf "\n========================================\n"
|
||||
echo "WARNING: you don't have Zram enabled"
|
||||
echo "Since this script is not yet capable of activating zram, you'll have to do it yourself"
|
||||
echo "Please refer to https://wiki.archlinux.org/title/Zram#Using_zram-generator"
|
||||
echo -e "========================================\n"
|
||||
printf "========================================\n\n"
|
||||
fi
|
||||
|
||||
## Mandatory Access Control (Apparmor)
|
||||
is_aa_active=$(sudo systemctl is-active apparmor.service)
|
||||
if [ is_aa_active != "active" ]; then
|
||||
echo -e "\n========================================"
|
||||
if [ "$is_aa_active" != "active" ]; then
|
||||
printf "\n========================================\n"
|
||||
echo "WARNING: you don't have AppArmor enabled"
|
||||
echo "Since this script is not yet capable of managing kernel parameters, you'll have to do it yourself"
|
||||
echo "Please refer to https://wiki.archlinux.org/title/AppArmor"
|
||||
echo -e "========================================\n"
|
||||
printf "========================================\n\n"
|
||||
fi
|
||||
|
||||
## Display manager (Ly)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue