adjusting arch minimal
This commit is contained in:
@@ -46,6 +46,48 @@ say_yellow "Starting minimal setup..."
|
|||||||
# Create user directories
|
# 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}
|
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 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
|
install_packages wget curl nano fastfetch lolcat bash-completion starship alacritty hwinfo lshw man-db tree xdg-user-dirs rsync time bat unzip chromium
|
||||||
|
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ CURRENT_DM="$(detect_display_manager)"
|
|||||||
if [[ -z "$CURRENT_DE" || "$CURRENT_DE" != "kde" ]]; then
|
if [[ -z "$CURRENT_DE" || "$CURRENT_DE" != "kde" ]]; then
|
||||||
say_cyan -e "KDE Plasma not detected. Installing KDE Plasma (light setup with SDDM)..."
|
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
|
enable_graphical_target
|
||||||
|
|
||||||
say_green -e "KDE Plasma with SDDM installed successfully. You can reboot now to start XFCE."
|
say_green -e "KDE Plasma with SDDM installed successfully. You can reboot now to start XFCE."
|
||||||
|
|||||||
Reference in New Issue
Block a user