-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathframework-laptop-13.sh
94 lines (78 loc) · 2.9 KB
/
framework-laptop-13.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/bash
set -e # Exit immediately if a command returns a non-zero status
echo "Updating system with Pacman..."
sudo pacman -Syu
echo "System updated successfully!"
echo -n "Do you want to install standard Arch utils? [neofetch, btop, distrobox, yay, firefox, flatpak, pavucontrol, nano, base-devel, git, dolphin, linux-firmware, wget, curl, usbutils, udisks2] (y/n): "
read answer
if [ "$answer" = "y" ]; then
echo "Installing utils..."
# Install standard Arch utilities
sudo pacman -S --needed neofetch btop distrobox firefox flatpak nano pavucontrol base-devel git dolphin linux-firmware curl wget usbutils udisks2
# Check if the installation was successful
echo "Checking installation status..."
if [ $? -eq 0 ]; then
echo "Installed utils successfully!"
# Attempt to install 'yay'
echo "Attempting to install 'yay'..."
git clone https://aur.archlinux.org/yay.git
# Check if the 'yay' clone was successful
echo "Checking 'yay' installation status..."
if [ $? -eq 0 ]; then
cd yay || { echo "Failed to enter 'yay' directory. Installation aborted."; exit 1; }
makepkg -si
cd ..
echo "'yay' installed successfully!"
echo "Do you want to install framework_tool? (y/n): "
read answer
if [ "$answer" = "y" ]; then
echo "Installing framework_tool..."
yay -S framework-system-git
echo "framework_tool installation complete."
elif [ "$answer" = "n" ]; then
echo "Skipping framework_tool installation."
else
echo "Invalid choice. Please enter 'y' or 'n'."
fi
else
echo "Failed to clone 'yay' repository. Installation aborted."
fi
else
echo "Failed to install standard Arch utilities. Installation aborted."
fi
elif [ "$answer" = "n" ]; then
echo "Skipping utils installation"
else
echo "Invalid choice. Please enter 'y' or 'n'."
fi
echo -n "Do you want to install KDE-Plasma? (This will also install yakuake) (y/n): "
read answer
if [ "$answer" = "y" ]; then
echo "Installing KDE-Plasma..."
sudo pacman -S plasma yakuake
echo "KDE-Plasma installation complete."
elif [ "$answer" = "n" ]; then
echo "Skipping KDE-Plasma installation."
else
echo "Invalid choice. Please enter 'y' or 'n'."
fi
echo -n "Do you want to install SDDM? (y/n): "
read answer
if [ "$answer" = "y" ]; then
echo "Installing SDDM..."
sudo pacman -S sddm
# Check if the installation was successful
echo "Checking installation status..."
if [ $? -eq 0 ]; then
echo "Enabling sddm.service..."
sudo systemctl enable sddm.service
else
echo "Failed to install SDDM. Installation aborted."
fi
elif [ "$answer" = "n" ]; then
echo "Skipping SDDM installation."
else
echo "Invalid choice. Please enter 'y' or 'n'."
fi
echo "Framework 13 laptop (Intel) color profile is going to be downloaded to /home/$USER/"
wget https://www.notebookcheck.net/uploads/tx_nbc2/BOE_CQ_______NE135FBM_N41_01.icm