-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstaller.sh
More file actions
executable file
·54 lines (45 loc) · 1.58 KB
/
installer.sh
File metadata and controls
executable file
·54 lines (45 loc) · 1.58 KB
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
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
success() {
echo -e "${GREEN}$1${NC}"
}
error() {
echo -e "${RED}$1${NC}"
}
confirm() {
while true; do
read -p "$1 [y/n] " yn
case $yn in
[Yy]* ) return 0;;
[Nn]* ) return 1;;
* ) echo "Please answer yes or no.";;
esac
done
}
# Define package groups
declare -A packages
packages[Essentials]="xorg xorg-server base-devel htop zsh curl openssh openssl unzip zip wget clang nodejs npm docker firefox chromium
nginx ffmpeg mpv bluez bluez-utils ttf-liberation ttf-dejavu ttf-font-awesome ttf-jetbrains-mono ttf-fira-code rsync less reflector fzf go noto-fonts-cjk nerd-fonts alacritty feh upower acpi flameshot pcmanfm neovim xf86-video-intel"
packages[WindowManager]="lxappearance nitrogen i3 lightdm lightdm-gtk-greeter dmenu brightnessctl picom"
packages[Misc]="whois neofetch discord yt-dlp gimp kdenlive virtualbox"
install_packages() {
for key in "${!packages[@]}"
do
if confirm "Do you want to install $key packages?"; then
sudo pacman -S --noconfirm ${packages[$key]}
success "$key packages installed."
else
error "$key packages skipped."
fi
done
}
echo "Welcome to installer.sh | created by ramenaru"
echo "This script will guide you automatically installing some basic package groups."
if [[ $EUID -ne 0 ]]; then
error "This script must be run as root"
exit 1
fi
install_packages
success "Installation complete! Enjoy your customized Arch Linux setup. | github.com/ramenaru"