-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
189 lines (146 loc) · 6.37 KB
/
setup.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# Contains parts of i3 install script by Johannes Kamprad #
# https://github.com/endeavouros-team/i3-EndeavourOS #
# https://github.com/killajoe #
# Contains parts of Erik Sundquist's Arch install script #
# https://github.com/lotw69/arch-scripts #
# Original dwm dotfiles by Ari Archer #
# https://github.com/TruncatedDinosour/dotfiles-cleaned #
# Modified for own use by Krim Kerre #
# https://github.com/Krimkerre #
#!/usr/bin/env bash
clear
echo "################################################################################"
echo "### Installing YAY ###"
echo "################################################################################"
sleep 2
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si --noconfirm --needed
cd ..
rm yay -R -f
clear
echo "################################################################################"
echo "### Install XORG Display ###"
echo "################################################################################"
sleep 2
sudo pacman -S --noconfirm --needed xorg-server
sudo pacman -S --noconfirm --needed xorg-xbacklight
sudo pacman -S --noconfirm --needed xorg-xdpyinfo
sudo pacman -S --noconfirm --needed xorg-xinit
sudo pacman -S --noconfirm --needed xorg-xinput
sudo pacman -S --noconfirm --needed xorg-xkill
sudo pacman -S --noconfirm --needed xorg-xrandr
sudo pacman -S --noconfirm --needed xorg-xbacklight
sudo pacman -S --noconfirm --needed xorg-xdpyinfo
sudo pacman -S --noconfirm --needed xterm
sudo pacman -S --noconfirm --needed xorg-drivers
clear
echo "################################################################################"
echo "### Setting Up Sound ###"
echo "################################################################################"
sleep 2
sudo pacman -S --noconfirm --needed - < packages-sound.txt
clear
echo "################################################################################"
echo "### Installing And Setting Up Bluetooth ###"
echo "################################################################################"
sleep 2
sudo pacman -S --noconfirm --needed - < packages-bluetooth.txt
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service
sudo sed -i 's/'#AutoEnable=false'/'AutoEnable=true'/g' /etc/bluetooth/main.conf
clear
################################################################################
### Install nVidia Video Drivers ###
################################################################################
function NVIDIA_DRIVERS() {
clear
echo "################################################################################"
echo "### Installing nVidia Video Drivers ###"
echo "################################################################################"
sleep 2
sudo pacman -S --noconfirm --needed - < packages-nvidia.txt
sudo pacman -R xf86-video-nouveau
}
################################################################################
### Install AMD Video Drivers ###
################################################################################
function AMD_DRIVERS() {
clear
echo "################################################################################"
echo "### Installing AMD Video Drivers ###"
echo "################################################################################"
sleep 2
sudo pacman -S --noconfirm --needed amdvlk
sudo pacman -S --noconfirm --needed lib32-amdvlk
sudo pacman -S --noconfirm --needed opencl-amd
echo "##############################################################################"
echo "### Congrats On Supporting Open Source GPU Vendor ###"
echo "##############################################################################"
}
if [[ $(lspci -k | grep VGA | grep -i nvidia) ]]; then
NVIDIA_DRIVERS
fi
if [[ $(lspci -k | grep VGA | grep -i amd) ]]; then
AMD_DRIVERS
fi
clear
echo "################################################################################"
echo "### Installing AUR packages ###"
echo "################################################################################"
# System tools
yay -S qt5-styleplugins --noconfirm --needed
# Internet
yay -S mailspring --noconfirm --needed
yay -S kotatogram-bin --noconfirm --needed
# Music streaming
yay -S ncspot-bin --noconfirm --needed
# Theming
yay -S gruvbox-dark-gtk --noconfirm --needed
yay -S nerd-fonts-hack --noconfirm --needed
# Touchpad tap to click
sudo mkdir -p /etc/X11/xorg.conf.d && sudo tee <<'EOF' /etc/X11/xorg.conf.d/90-touchpad.conf 1> /dev/null
Section "InputClass"
Identifier "touchpad"
MatchIsTouchpad "on"
Driver "libinput"
Option "Tapping" "on"
EndSection
EOF
clear
echo "################################################################################"
echo "### Installing DWM and apps ###"
echo "################################################################################"
sudo pacman -S --noconfirm --needed - < packages-desktop.txt
cp -R .config/* ~/.config/
cp -R .icons/* ~/.icons/
cp -R .scripts/* ~/.scripts/
cp -R .vim/* ~/.vim/
mkdir ~/Pictures
cp -R Pictures/gruvbox.jpg ~/Pictures/gruvbox.jpg
cp -R Suckless/* ~/Suckless/
cp -R .gtkrc-2.0 ~/.gtkrc-2.0
cp -R .vimrc ~/.vimrc
cp -R .bashrc ~/.bashrc
cp -R .bash_profile ~/.bash_profile
cp -R .xinitrc ~/.xinitrc
cp -R .xprofile ~/.xprofile
# install Suckless apps
chmod -R +x ~/Suckless
cd Suckless
./compile
cd
# bdwmb
git clone https://github.com/TruncatedDinosour/bdwmb
cd bdwmb
make full
make config
cd
chmod -R +x ~/.scripts
echo "export QT_QPA_PLATFORMTHEME=gtk2" >> ~/.profile
pacman -Rsn $(pacman -Qdtq) --noconfirm
clear
echo "##############################################################################"
echo "### Installation Is Complete, run 'startx' to start DWM ###"
echo "### P R O F I T ###"
echo "##############################################################################"