-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstaller.sh
52 lines (35 loc) · 1.26 KB
/
installer.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
#!/bin/bash
# Only Tested on Arch Linux 5.12.11 x86_64
# Custom installer script to set up Arch the way I want it
USERNAME="peniswaffle"
systemctl start dhcpcd && systemctl enable dhcpcd
# potential packages to install:
#
pacman -Syu --noconfirm base-devel xorg xorg-xinit xmonad xmonad-contrib xmobar alacritty nitrogen dmenu virtualbox-guest-utils firefox picom pacman-contrib zsh zsh-completions ttf-fira-code
if [ ! pacman -Qi yay || ! pacman -Qi yay-git ]
then
sudo -u $USERNAME git clone https://aur.archlinux.org/yay-git.git
cd yay-git && sudo -u $USERNAME makepkg --noconfirm -si
cd ../
fi
sudo -u $USERNAME yay -S --noconfirm nerd-fonts-mononoki otf-font-awesome-5-free sublime-text
cp -r .xmonad /home/$USERNAME/
cp -r .config /home/$USERNAME/
cp -r .xinitrc /home/$USERNAME/
cp -r wallpapers /home/$USERNAME/
cp .zshrc /home/$USERNAME/
chgrp -R $USERNAME *
chown -R $USERNAME *
chgrp -R $USERNAME .*
chown -R $USERNAME .*
su $USERNAME
if [ ! -d "/home/$USERNAME/.local" ]
then
mkdir /home/$USERNAME/.local
fi
if [ ! -d "/home/$USERNAME/.local/bin/" ]
then
mkdir /home/$USERNAME/.local/bin
fi
echo "cupd=$(checkupdates | wc -l) \n echo \"$cupd updates\"" > /home/$USERNAME/.local/bin/pacupdate
nitrogen --set-scaled --random /home/$USERNAME/wallpapers