diff --git a/v2/arch-minimal.sh b/v2/arch-minimal.sh index dfb05a5..70ce18d 100755 --- a/v2/arch-minimal.sh +++ b/v2/arch-minimal.sh @@ -46,6 +46,48 @@ say_yellow "Starting minimal setup..." # Create user directories mkdir -p "$HOME"/{.bin,.fonts,.icons,.themes,DATA} "$HOME/.local/share/"{icons,themes,applications} "$HOME/.config/"{autostart,gtk-{3.0,4.0},variety,fish,neofetch} +# Removing unwanted drivers +say_yellow "GET RID OF BROADCOM AND REALTEK DRIVERS" +remove_packages broadcom-wl-dkms r8168-dkms rtl8821cu-morrownr-dkms-git + +# Removing unwanted kernels +say_yellow "KEEP LINUX KERNEL GET RID OF THE OTHER KERNELS" +# Ensure at least one kernel remains +if pacman -Qi linux &> /dev/null && pacman -Qi linux-headers &> /dev/null; then + + # Define all the kernels and their headers you want to remove + KERNELS_TO_REMOVE=( + linux-lts-headers linux-lts + linux-zen-headers linux-zen + linux-hardened-headers linux-hardened + linux-rt-headers linux-rt + linux-rt-lts-headers linux-rt-lts + linux-cachyos-headers linux-cachyos + linux-xanmod-headers linux-xanmod + ) + remove_package() { + local package=$1 + # Check if the package is installed + if pacman -Q $package &> /dev/null; then + say_yellow "$package is installed. Removing..." + sudo pacman -Rns --noconfirm $package + else + say_yellow "$package is not installed." + fi + } + + # Loop over the array and remove each kernel package + for kernel in "${KERNELS_TO_REMOVE[@]}"; do + remove_package "$kernel" + done + +else + echo "Cannot proceed: At least one kernel must remain installed." +fi + +# Removing unwanted video drivers +remove_packages xf86-video-amdgpu xf86-video-ati xf86-video-fbdev xf86-video-nouveau xf86-video-openchrome xf86-video-vesa + # Install essential tools install_packages wget curl nano fastfetch lolcat bash-completion starship alacritty hwinfo lshw man-db tree xdg-user-dirs rsync time bat unzip chromium diff --git a/v2/arch-plasma.sh b/v2/arch-plasma.sh index 395f73d..555ee17 100755 --- a/v2/arch-plasma.sh +++ b/v2/arch-plasma.sh @@ -73,7 +73,7 @@ CURRENT_DM="$(detect_display_manager)" if [[ -z "$CURRENT_DE" || "$CURRENT_DE" != "kde" ]]; then say_cyan -e "KDE Plasma not detected. Installing KDE Plasma (light setup with SDDM)..." - install_packages sddm plasma + install_packages sddm plasma thunar thunar-archive-plugin thunar-volman enable_graphical_target say_green -e "KDE Plasma with SDDM installed successfully. You can reboot now to start XFCE."