-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall-on-arch.sh
executable file
·155 lines (120 loc) · 4.38 KB
/
install-on-arch.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
YARPATH="$(pwd)"
# Update pacman
echo "Updating pacman, just wait a little"
sudo pacman --noconfirm -Syu
# Install dependecies
echo "##############################"
echo "Installing a bunch of stuff"
echo "##############################"
sudo pacman -S --noconfirm --needed xorg xorg-xinit\
bspwm sxhkd \
lightdm lightdm-gtk-greeter \
git python3 gcc base-devel \
xwallpaper \
mpv \
ttf-cascadia-code \
rofi \
yarn \
nodejs \
npm \
xclip \
cmake \
ttf-nerd-fonts-symbols
# Setup lightdm
sudo systemctl enable lightdm &
# Installing NVIM
sudo pacman -S --noconfirm --needed neovim
echo "##############################"
echo "installing Rust and alacritty"
echo "##############################"
sudo pacman -S --needed rustup cargo
rustup default stable
echo "##############################"
echo "Installing paru"
echo "##############################"
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si && cd ..
paru -Syu
echo "##############################"
echo "Installing Picom"
echo "##############################"
paru -S --noconfirm --needed picom-jonaburg-git
echo "##############################"
echo "Installing alacritty"
echo "##############################"
paru -S --noconfirm --needed alacritty
echo "##############################"
echo "Installing polybar"
echo "##############################"
paru -S --needed polybar
echo "##############################"
echo "Installing xwinwrap"
echo "##############################"
paru -S --needed xwinwrap
sudo chmod 777 ~/.config/ -R
echo "##############################"
echo "Installing pywal"
echo "##############################"
paru -Syu pywal
echo "##############################"
echo "Installing vim plug"
echo "##############################"
paru -Syu vim-plug
echo "##############################"
echo "Installing programs"
echo "##############################"
echo "##############################"
echo "NOTE: installing programs now will also add them to the generatecolorscheme script"
echo "##############################"
sleep 2
echo "Do you want to install Discord? 1) yes 2) no"
read -r -p "(Default: 1): " discord
if [ -z $discord ] || [ $discord -eq "1" ]; then
sudo pacman -Syu discord
paru -Syu pywal-discord && echo pywal-discord >> $YARPATH/configs/scripts/generatecolorscheme.sh
curl -O https://raw.githubusercontent.com/bb010g/betterdiscordctl/master/betterdiscordctl
sudo chmod +x betterdiscordctl
sudo mv betterdiscordctl /usr/local/bin
fi
echo "Do you want to install Firefox? 1) yes 2) no"
read -r -p "(Default: 1): " firefox
if [ -z $firefox ] || [ $firefox -eq "1" ]; then
sudo pacman -Syu firefox
paru -Syu python-pywalfox && echo pywalfox update >> $YARPATH/configs/scripts/generatecolorscheme.sh
fi
echo "##############################"
echo "Copying configs"
echo "##############################"
if [ -d $HOME/.config ]; then
sudo cp -r $YARPATH/configs/alacritty ~/.config
sudo cp -r $YARPATH/configs/bashrc ~/.config
sudo cp -r $YARPATH/configs/bspwm ~/.config
sudo cp -r $YARPATH/configs/picom ~/.config
sudo cp -r $YARPATH/configs/polybar ~/.config
sudo cp -r $YARPATH/configs/rofi ~/.config
sudo cp -r $YARPATH/configs/scripts ~/.config
sudo cp -r $YARPATH/configs/sxhkd ~/.config
sudo cp -r $YARPATH/configs/xconfigs ~/.config
sudo cp -r $YARPATH/configs/nvim ~/.config
else
sudo cp -r "$YARPATH/configs" ~/
sudo mv ~/configs ~/.config
fi
sudo cp ~/.config/scripts/generatecolorscheme.sh /bin/generatecolorscheme
sudo cp ~/.config/scripts/setwallpaper.sh /bin/setwallpaper
sudo chmod +x /bin/setwallpaper
sudo chmod +x /bin/generatecolorscheme
sudo mv ~/.config/bashrc/.bashrc ~/.bashrc
sudo rm -r ~/.config/bashrc
sudo mv ~/.config/xconfigs/.xinit ~/.xinit
sudo mv ~/.config/xconfigs/.xprofile ~/.xprofile
sudo rm -r ~/.config/xconfigs
sudo cp -r "$YARPATH/wallpapers" ~/
echo "##############################"
echo "Setting up default colors"
echo "##############################"
DEFAULTWALL="$HOME/wallpapers/purple.jpeg"
echo $DEFAULTWALL > $HOME/.currentwallpaper
wal -i $DEFAULTWALL -n
nvim $YARPATH/postinstallwarning