-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
pacman.sh
executable file
·72 lines (59 loc) · 1.86 KB
/
pacman.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
#!/bin/bash
clear
title() {
clear
echo -e "\e[91m ___ _ __ _ "
echo -e " / _ |__ _____ ___ (_)__/ /__( )___"
echo -e " / __ |\ \ / -_) _ \/ / _ / -_)/(_-<"
echo -e "/_/_|_/_\_\\__/_//_/_/\_,_/\__/ /___/"
echo -e " / _ \___ / /_/ _(_) /__ ___ "
echo -e " / // / _ \/ __/ _/ / / -_|_-< "
echo -e "/____/\___/\__/_//_/_/\__/___/ \e[0m"
echo "≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣≣"
}
title
echo "For this installation you need git and an AUR helper (yay). Do you want to install them? (y/n)"
read install_git_yay
if [ $install_git_yay = "y" ]; then
sudo pacman -S --needed git
git clone https://aur.archlinux.org/yay-bin.git
cd yay-bin
makepkg -si
cd ..
rm -rf yay-bin
title
else
clear
echo "Please install git and yay before running this script."
exit 1
fi
title
echo "Do you want to install Chaotic AUR and custom pacman.conf? (y/n)"
read pacman_conf
if [ $pacman_conf = "y" ]; then
sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
sudo pacman-key --lsign-key 3056513887B78AEB
sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst'
sudo pacman -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
sudo cp ./pacman/pacman.conf /etc/pacman.conf
title
echo "Chaotic AUR and custom pacman.conf installed."
else
title
echo "Chaotic AUR and custom pacman.conf not installed."
fi
title
echo "Do you want to install the packages for this dotfiles? (y/n)"
read install_packages
if [ $install_packages = "y" ]; then
yay -S --needed - < ./pacman/packages.txt
title
echo "Packages installed."
else
title
echo "Packages not installed."
fi
sudo usermod -aG input $USER
sudo usermod -aG seat $USER
# Change shell to fish
chsh -s /bin/fish