forked from i3-Arch/Arch-Installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost-install.sh
516 lines (469 loc) · 18.1 KB
/
post-install.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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
#!/bin/bash
#
# POST INSTALL SCRIPT
# - i3-Arch
# FONT
setfont Lat2-Terminus16
# COLORS
red=$(tput setaf 1)
white=$(tput setaf 7)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
checkroot() {
if [ "$(id -u)" -eq 0 ]
then
clear
printf "\033[1m \n\n ${green} Almost Ready to start ! \n\n \033[0m"
wget -q --tries=10 --timeout=20 https://google.com
if [[ "$?" -eq 0 ]]
then
printf "\033[1m ${green}\n\n Online... ${yellow}Lets do this...\033[0m"
rm index.html
pacman -Syyu --noconfirm
else
printf "\033[1m \n\n${red}Offline ${white}- ${yellow}wait 8 seconds...\n\033[0m"
sleep 8
wget -q --tries=5 --timeout=20 https://google.com
if [[ "$?" -eq 0 ]]
then
printf "\033[1m ${green} \n\n Cool... Lets do this \n\n\033[0m"
rm index.html
pacman -Syyu --noconfirm
else
printf "\033[1m ${red} \n\n DID YOU RUN DHCPCD ??? \033[0m"
printf "\033[1m \n\n${green} Connect to internet.. Then try again \n\n\033[0m"
printf "\033[1m ${red} EXITING \033[0m"
sleep 5
exit
fi
fi
else
clear
printf "\033[1m \n\n ${yellow}You need to be ${green}root ${yellow}to run this script \n\n \033[0m"
printf "\033[1m ${red}EXITING NOW /n/n \033[0m"
sleep 2
exit
fi
}
intelinside() {
printf "\033[1m \n\n${green}Are you using intel ?? \033[0m"
printf "\033[1m \n ${white}[${green}Y${white}|${red}N${white}] \033[0m"
printf "\033[1m \n\n${yellow}Answer: ${white}\033[0m"
read intelstuff
if [ "$intelstuff" == Y -o "$intelstuff" == y ]
then
pacman -S intel-dri xf86-video-intel --noconfirm
else
printf "\033[1m \n\n ${green}Are you using AMD ? \n\033[0m"
printf "\033[1m \n ${white}[${green}Y${white}|${red}N${white}] \033[0m"
printf "\033[1m \n ${yellow}Answer: ${white}\033[0m"
read amdstuff
if [ "$amdstuff" == Y -o "$amdstuff" == y ]
then
pacman -S ati-dri xf86-video-ati --noconfirm
fi
fi
}
mirrorselect() {
printf "\033[1m ${green} \n\n Select Your Mirrors ?\n\n \033[0m"
printf "\033[1m ${white}[${green}Y${white}|${red}N${white}]\033[0m"
printf "\033[1m \n\n${yellow}Choice: ${white}\033[0m"
read mirrorsyo
if [ "$mirrorsyo" == Y -o "$mirrorsyo" == y ]
then
if [ -f /etc/pacman.d/mirrorlist.pacnew ]
then
cp /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist
fi
printf "\033[1m${red}\n ctrl+x to exit nano \n\n\033[0m"
sleep 3
nano /etc/pacman.d/mirrorlist
else
printf "\033[1m ${green} Ok... Skipping \033[0m"
sleep 1
fi
}
needpass() {
clear
printf "\033[1m \n ${yellow} Set a ROOT password \n\n \033[0m"
passwd
}
usersetup() {
clear
printf "\033[1m \n\n ${green} Lets create a user ! \n \033[0m"
printf "\033[1m \n\n ${yellow} Enter username you want to create \n \033[0m"
printf "\033[1m \n Username:${white} \033[0m"
read namebro
$(useradd -m -G adm,disk,audio,network,video "$namebro")
printf "\033[1m \n\n ${yellow} Set a Password for this USER now \n\n \033[0m"
passwd "$namebro"
printf "\033[1m \n\n ${yellow}Would you like to add this user to sudoers? ( user ALL=(ALL) ALL ) \033[0m"
printf "\033[1m \n\n ${white}[${green}Y${white}|${red}N${white}] \033[0m"
printf "\033[1m\n\n ${red}Answer: ${white}\033[0m"
read anot
if [ "$anot" == Y -o "$anot" == y -o "$anot" == yes -o "$anot" == YES ]
then
echo -n "$namebro" "ALL=(ALL)" "ALL" >> /etc/sudoers
fi
}
uwantme() {
clear
printf "\033[1m \n ${green} Do you want to install a WM/DE now ? \n \033[0m"
printf "\033[1m \n\n ${white}[${green}Y${white}|${red}N${white}] \n\n \033[0m"
printf "\033[1m \n\n ${red} Choice:${white} \033[0m"
read wutdebro
if [ "$wutdebro" == Y -o "$wutdebro" == y -o "$wutdebro" == YES -o "$wutdebro" == yes ]
then
main2
else
printf "\033[1m \n\n ${red} Understood... Have fun with ARCH ! \n\n \033[0m"
fi
}
thankyoubro() {
clear
printf "\033[1m \n ${green} Thanks for being lazy and using our script ! \n \033[0m"
printf "\033[1m \n ${yellow} If you have any problems afterwards \n \033[0m"
printf "\033[1m \n ${red} Search The ARCHWIKI \n \n \033[0m"
sleep 3
}
banner() {
cat <<"EOT"
_____________________________
!\___________________________/\
!! !!\
!! !! \
!! ARCHLINUX !! !
!! IS DAT !! !
!! MASTER RACE !! !
!! !! !
!! lulz@arch~> hue !! !
!! zsh:command not found:hue !! /
!! !!/
!!___________________________!!
!/________________________\!/
__\_________________/__/!_
!_______________________!/ )
________________________ (__
/oooo oooo oooo oooo /! _ )_
/ooooooooooooooooooooooo/ / (_)_(_)
/ooooooooooooooooooooooo/ / (o o)
/C=_____________________/_/ ==\o/==
EOT
sleep 3
cd "$HOME"
printf "\033[1m \n\n ${green} :: Lets Do This :: \n\n\033[0m"
printf "\033[1m \n\n ${yellow} #ARCHLINUX-SWAG \n\n\033[0m"
sleep 2
}
makeitbro() {
clear
printf "\033[1m \n ${green}Option 1: ${yellow}Install Default Xfce Setup \n \033[0m"
printf "\033[1m \n ${green}Option 2: ${yellow}Install Our CUSTOM i3 Setup\n \033[0m"
printf "\033[1m \n ${green}Option 3: ${yellow}Install Default Cinnamon Setup \n \033[0m"
printf "\033[1m \n ${green}Option 4: ${yellow}Install Default Dwm Setup \n \033[0m"
printf "\033[1m \n ${green}Option 5: ${yellow}Install Default Awesome Setup \n \033[0m"
printf "\033[1m \n ${green}Option 6: ${yellow}Install Default Gnome Setup \n \033[0m"
printf "\033[1m \n ${green}Option 7: ${yellow}Install Default Kde Setup \n\n \033[0m"
printf "\033[1m\n${white}Choose a number ${red}1${white}-${red}7\033[0m"
printf "\033[1m \n\n ${yellow}Choice${white}: ${white}\033[0m"
read DemChoice
if [ "$DemChoice" -eq "1" ]
then
pacman -Syy xfce4 xfce4-goodies xorg-server xorg-server-utils xorg-font-util xorg-xinit xterm ttf-dejavu xf86-video-vesa xf86-input-synaptics firefox --noconfirm
elif [ "$DemChoice" -eq "2" ]
then
pacman -Syy zsh vimpager conky zsh-syntax-highlighting xcompmgr transset-df xscreensaver xorg-server vim xorg-server-utils feh xorg-font-util xorg-xinit xterm i3-wm i3status dmenu ttf-dejavu xf86-video-vesa xf86-input-synaptics firefox rxvt-unicode urxvt-perls --noconfirm
elif [ "$DemChoice" -eq "3" ]
then
pacman -Syy cinnamon xorg-server xorg-server-utils xorg-font-util xorg-xinit xterm ttf-dejavu xf86-video-vesa xf86-input-synaptics firefox --noconfirm
elif [ "$DemChoice" -eq "4" ]
then
pacman -Syy xorg-server feh xorg-server-utils xorg-font-util xorg-xinit xterm ttf-dejavu xf86-video-vesa xf86-input-synaptics firefox abs dmenu --noconfirm
elif [ "$DemChoice" -eq "5" ]
then
pacman -Syy awesome xorg-server xorg-server-utils xorg-font-util xorg-xinit xterm ttf-dejavu xf86-video-vesa xf86-input-synaptics firefox --noconfirm
elif [ "$DemChoice" -eq "6" ]
then
pacman -Syy gnome gnome-extra xorg-server xorg-server-utils xorg-font-util xorg-xinit xterm ttf-dejavu xf86-video-vesa xf86-input-synaptics firefox --noconfirm
elif [ "$DemChoice" -eq "7" ]
then
pacman -Syy kde xorg-server xorg-server-utils xorg-font-util xorg-xinit xterm ttf-dejavu xf86-video-vesa xf86-input-synaptics firefox --noconfirm
else
printf "\033[1m ${yellow}Choice not understood... ${red}Exiting \033[0m"
sleep 5
exit
fi
}
xseti3() {
X -configure 2> /dev/null
if [ -f "$HOME/xorg.conf.new" ]
then
cp "$HOME/xorg.conf.new" "$HOME/xorg.conf"
rm "$HOME/xorg.conf.new"
fi
if [ "$DemChoice" -eq "2" ]
then
wget https://raw.githubusercontent.com/i3-Arch/i3config/master/.i3/config
wget https://raw.githubusercontent.com/i3-Arch/i3config/master/.i3/conky/conky-i3bar
wget https://raw.githubusercontent.com/i3-Arch/i3config/master/.i3/conky/.conkyrc
if [ -f "$HOME/.i3/config" ]
then
rm -rf ~/.i3
mkdir -pv ~/.i3/conky
mv config ~/.i3/
mv .conkyrc ~/.i3/conky/
mv conky-i3bar ~/.i3/conky/
else
mkdir -pv ~/.i3/conky
mv config ~/.i3/
mv .conkyrc ~/.i3/conky/
mv conky-i3bar ~/.i3/conky/
fi
fi
}
guestbro() {
clear
printf "\033[1m \n\n ${green}Are you using Virtualbox ? \n\n \033[0m"
printf "\033[1m \n\n ${white}[${green}Y${white}|${red}N${white}] \n \033[0m"
printf "\033[1m \n\n ${green}Answer: ${white}\033[0m"
read wutUsay
if [ "$wutUsay" == Y -o "$wutUsay" == y ]
then
pacman -Syy virtualbox-guest-utils --noconfirm
su "$namebro" -c "depmod" 2> /dev/null
modprobe -a vboxguest vboxsf vboxvideo
echo "vboxguest" > /etc/modules-load.d/virtualbox.conf 2> /dev/null
echo "vboxvideo" >> /etc/modules-load.d/virtualbox.conf 2> /dev/null
echo "vboxsf" >> /etc/modules-load.d/virtualbox.conf 2> /dev/null
elif [ "$wutUsay" == N -o "$wutUsay" == n ]
then
printf "\033[1m \n\n ${green}Are you using VMWARE ? \033[0m"
printf "\033[1m \n\n ${white}[${green}Y${white}|${red}N${white}] \033[0m"
printf "\033[1m \n\n ${green}Answer: ${white}\033[0m"
read VMwut
if [ "$VMwut" == Y -o "$VMwut" == y ]
then
pacman -Syy svga-dri xf86-input-vmmouse xf86-video-vmware open-vm-tools --noconfirm
cat /proc/version > /etc/arch-release
systemctl start vmtoolsd
systemctl enable vmtoolsd
fi
else
printf "\033[1m \n\n${red}Did you type a ${yellow}'y' ${white}or a ${yellow}'n'${red} ? \033[0m"
printf "\033[1m \n ${red}Moving on....\033[0m"
sleep 2
fi
}
envset() {
cp /etc/skel/.xinitrc /home/"$namebro"/
chown "$namebro":"$namebro" /home/"$namebro"/.xinitrc
if [ "$DemChoice" -eq "1" ]
then
if [ -f /home/"$namebro"/.xinitrc ]
then
echo "exec startxfce4" >> /home/"$namebro"/.xinitrc
fi
elif [ "$DemChoice" -eq "2" ]
then
if [ -f /home/"$namebro"/.xinitrc ]
then
rm /home/"$namebro"/.xinitrc
wget https://raw.githubusercontent.com/i3-Arch/i3config/master/.Xresources
wget https://raw.githubusercontent.com/i3-Arch/i3config/master/.xinitrc
wget https://raw.githubusercontent.com/i3-Arch/i3config/master/.zshrc
wget https://raw.githubusercontent.com/i3-Arch/i3config/master/.vimrc
cp .Xresources .zshrc .xinitrc .vimrc /home/"$namebro"/
cp -r .i3 /home/"$namebro"/
chmod +x /home/"$namebro"/.i3/conky/conky-i3bar
chmod +x /home/"$namebro"/.i3/conky/conky-i3bar
chown "$namebro":"$namebro" /home/"$namebro"/.i3
chown "$namebro":"$namebro" /home/"$namebro"/.i3/config
chown "$namebro":"$namebro" /home/"$namebro"/.i3/conky
chown "$namebro":"$namebro" /home/"$namebro"/.i3/conky/.conkyrc
chown "$namebro":"$namebro" /home/"$namebro"/.i3/conky/conky-i3bar
chown "$namebro":"$namebro" /home/"$namebro"/.Xresources
chown "$namebro":"$namebro" /home/"$namebro"/.vimrc
chown "$namebro":"$namebro" /home/"$namebro"/.zshrc
chown "$namebro":"$namebro" /home/"$namebro"/.xinitrc
fi
elif [ "$DemChoice" -eq "3" ]
then
if [ -f /home/"$namebro"/.xinitrc ]
then
echo "exec cinnamon-session" >> /home/"$namebro"/.xinitrc
fi
elif [ "$DemChoice" -eq "4" ]
then
if [ -f /home/"$namebro"/.xinitrc ]
then
echo "exec dwm" >> /home/"$namebro"/.xinitrc
echo "xrdb merge .Xresources" >> /home/"$namebro"/.xinitrc
wget https://raw.githubusercontent.com/i3-Arch/i3config/master/.Xresources
mv ~/.Xresources /home/"$namebro"/
abs community/dwm
cp -r /var/abs/community/dwm /home/"$namebro"/dwm
chown "$namebro":"$namebro" /home/"$namebro"/dwm
chown "$namebro":"$namebro" /home/"$namebro"/dwm/*
chown "$namebro":"$namebro" /home/"$namebro"/.Xresources
su "$namebro" -c "cd /home/"$namebro"/dwm && makepkg"
pacman -U /home/"$namebro"/dwm/*.tar.xz --noconfirm
fi
elif [ "$DemChoice" -eq "5" ]
then
if [ -f /home/"$namebro"/.xinitrc ]
then
echo "exec awesome" >> /home/"$namebro"/.xinitrc
fi
elif [ "$DemChoice" -eq "6" ]
then
if [ -f /home/"$namebro"/.xinitrc ]
then
echo "exec gnome-session" >> /home/"$namebro"/.xinitrc
fi
elif [ "$DemChoice" -eq "7" ]
then
if [ -f /home/"$namebro"/.xinitrc ]
then
echo "exec startkde" >> /home/"$namebro"/.xinitrc
fi
fi
}
loginmanage() {
if [ "$DemChoice" -eq "1" -o "$DemChoice" -eq "2" -o "$DemChoice" -eq "3" -o "$DemChoice" -eq "4" -o "$DemChoice" -eq "5" ]
then
clear
printf "\033[1m \n\n ${green}Would you like to enable slim ? \n\n \033[0m"
printf "\033[1m \n\n ${white}[${green}Y${white}|${red}N${white}] \n\n \033[0m"
printf "\033[1m \n ${green}Answer: ${white}\033[0m"
read slimok
if [ "$slimok" == Y -o "$slimok" == y ]
then
pacman -Syy slim --noconfirm
systemctl enable slim.service
printf "\033[1m ${red}\nReboot to take effect \n\n\033[0m"
sleep 1
else
printf "\033[1m \n ${yellow}EXTRA TIP ${green}:: ${red}In the future you will need to Run ${yellow}startx ${green}:: \n \033[0m"
fi
elif [ "$DemChoice" -eq "6" ]
then
clear
printf "\033[1m \n\n ${green}Would you like to enable Gdm ? \n\n\033[0m"
printf "\033[1m \n\n ${white}[${green}Y${white}|${red}N${white}] \n\n\033[0m"
printf "\033[1m \n ${green}Answer: ${white}\033[0m"
read gdmok
if [ "$gdmok" == Y -o "$gdmok" == y ]
then
systemctl enable gdm.service
printf "\033[1m ${red}\n Reboot to take effect \n\n\033[0m"
sleep 1
fi
elif [ "$DemChoice" -eq "7" ]
then
clear
printf "\033[1m \n\n ${green} Would you like to enable Kdm ?\n\n\033[0m"
printf "\033[1m \n\n ${white}[${green}Y${white}|${red}N${white}] \n\n\033[0m"
printf "\033[1m \n ${green}Answer: ${white}\033[0m"
read kdmok
if [ "$kdmok" == Y -o "$kdmok" == y ]
then
systemctl enable kdm.service
printf "\033[1m ${red}\nReboot to take effect \033[0m"
sleep 1
fi
fi
}
bobthebuilder() {
clear
printf "\033[1m\n\n ${green}Would you like to setup pacaur ? \n\033[0m"
printf "\033[1m\n\n ${white}It's an ${red}AUR ${white}helper with cower backend \n\n\033[0m"
printf "\033[1m\n\n${white}[${green}Y${white}|${red}N${white}]\n\n\033[0m"
printf "\033[1m\n\n${red}Answer: ${white}\033[0m"
read thatquestion
if [ "$thatquestion" == Y -o "$thatquestion" == y ]
then
printf "\033[1m\n\n ${green}Setting up pacaur for future use \n\n\033[0m"
pacman -Syy expac yajl --noconfirm
su "$namebro" -c "mkdir /home/"$namebro"/build-dir"
su "$namebro" -c "cd /home/"$namebro"/build-dir && wget https://aur.archlinux.org/packages/co/cower/cower.tar.gz && tar xzvf cower.tar.gz"
su "$namebro" -c "cd /home/"$namebro"/build-dir/cower && makepkg -s"
pacman -U /home/"$namebro"/build-dir/cower/*.xz --noconfirm
su "$namebro" -c "cd /home/"$namebro"/build-dir && wget https://aur.archlinux.org/packages/pa/pacaur/pacaur.tar.gz && tar xzvf pacaur.tar.gz"
su "$namebro" -c "cd /home/"$namebro"/build-dir/pacaur && makepkg -s"
pacman -U /home/"$namebro"/build-dir/pacaur/*.xz --noconfirm
rm -rf /home/"$namebro"/build-dir
else
printf "\033[1m\n\n ${yellow}You entered no\n\033[0m"
printf "\033[1m ${yellow}or an unexpected character \n\033[0m"
printf "\033[1m\n ${red}Moving on... \n\033[0m"
sleep 2
fi
}
urxvtstuff() {
clear
if [ "$DemChoice" -eq 2 ]
then
clear
printf "\033[1m\n\n${green}Setting up urxvt for custom i3 setup\n\033[0m"
printf "\033[1m\n ${yellow}And changing shell to zsh for your user\n\033[0m"
sleep 2
if [ ! -d /home/"$namebro"/build-dir ]
then
su "$namebro" -c "mkdir /home/"$namebro"/build-dir"
fi
pacman -Syy git xorg-xlsfonts flac gtk3 json-c libasyncns libnotify libogg libpulse libsndfile libvorbis --noconfirm
su "$namebro" -c "cd /home/"$namebro"/build-dir && wget https://aur.archlinux.org/packages/ur/urxvt-tabbedex/urxvt-tabbedex.tar.gz && tar xzvf urxvt-tabbedex.tar.gz"
su "$namebro" -c "cd /home/"$namebro"/build-dir/urxvt-tabbedex && makepkg -s"
pacman -U /home/"$namebro"/build-dir/urxvt-tabbedex/*.xz --noconfirm
su "$namebro" -c "cd /home/"$namebro"/build-dir && wget https://aur.archlinux.org/packages/oh/oh-my-zsh-git/oh-my-zsh-git.tar.gz && tar xzvf oh-my-zsh-git.tar.gz"
su "$namebro" -c "cd /home/"$namebro"/build-dir/oh-my-zsh-git && makepkg -s"
pacman -U /home/"$namebro"/build-dir/oh-my-zsh-git/*.xz --noconfirm
su "$namebro" -c "cd /home/"$namebro"/build-dir && wget https://aur.archlinux.org/packages/ur/urxvt-vtwheel/urxvt-vtwheel.tar.gz && tar xzvf urxvt-vtwheel.tar.gz"
su "$namebro" -c "cd /home/"$namebro"/build-dir/urxvt-vtwheel && makepkg -s"
pacman -U /home/"$namebro"/build-dir/urxvt-vtwheel/*.xz --noconfirm
su "$namebro" -c "cd /home/"$namebro"/build-dir && wget https://aur.archlinux.org/packages/ur/urxvt-font-size-git/urxvt-font-size-git.tar.gz && tar xzvf urxvt-font-size-git.tar.gz"
su "$namebro" -c "cd /home/"$namebro"/build-dir/urxvt-font-size-git && makepkg -s"
pacman -U /home/"$namebro"/build-dir/urxvt-font-size-git/*.xz --noconfirm
su "$namebro" -c "cd /home/"$namebro"/build-dir && wget https://aur.archlinux.org/packages/pr/prezto-git/prezto-git.tar.gz && tar xzvf prezto-git.tar.gz"
su "$namebro" -c "cd /home/"$namebro"/build-dir/prezto-git && makepkg -s"
pacman -U /home/"$namebro"/build-dir/prezto-git/*.xz --noconfirm
su "$namebro" -c "cd /home/"$namebro"/build-dir && wget https://aur.archlinux.org/packages/xc/xcursor-ecliz-arch/xcursor-ecliz-arch.tar.gz && tar xzvf xcursor-ecliz-arch.tar.gz"
su "$namebro" -c "cd /home/"$namebro"/build-dir/xcursor-ecliz-arch && makepkg -s"
if [ $(uname -m) = x86_64 ]
then
pacman -U /home/"$namebro"/build-dir/xcursor-ecliz-arch/*x86_64*.xz --noconfirm
else
pacman -U /home/"$namebro"/build-dir/xcursor-ecliz-arch/*i686*.xz --noconfirm
fi
clear
printf "\033[1m\n${green}Enter your ${red}USER PASSWORD${yellow} ( Changing Shell to ZSH )\n\033[0m"
su "$namebro" -c "chsh -s $(which zsh)"
rm -rf /home/"$namebro"/build-dir
printf "\033[1m \n\n ${green}Setting up wallpaper in ${red} /home/"$namebro"/.wallpapers \033[0m"
su "$namebro" -c "mkdir /home/"$namebro"/.wallpapers && cd /home/"$namebro"/.wallpapers && wget https://raw.githubusercontent.com/i3-Arch/i3config/master/wallpaper.png"
su "$namebro" -c "cd /home/"$namebro" && echo "'feh --bg-scale ~/.wallpapers/wallpaper.png'" > .fehbg"
fi
}
main2() {
banner
guestbro
makeitbro
xseti3
envset
loginmanage
bobthebuilder
urxvtstuff
intelinside
printf "\033[1m ${red} You Most Likely Need To Reboot For Changes To Take Effect\n\033[0m"
}
main() {
checkroot
thankyoubro
needpass
usersetup
mirrorselect
uwantme
sed -i '13i namebro="$namebro"' another.sh
}
main
#EOF