-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·259 lines (227 loc) · 8.82 KB
/
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
#!/usr/bin/env bash
sudo -v
if pacman -Q bluez >> /dev/null; then
echo "Bluetooth is set up."
else
sudo pacman -S --noconfirm bluez
sudo systemctl enable bluetooth
fi
if pacman -Q pulseaudio >> /dev/null; then
sudo pacman -Rc --noconfirm pulseaudio pulseaudio-alsa pulseaudio-bluetooth
sudo pacman -S --noconfirm pipewire pipewire-pulse pipewire-audio
fi
if pacman -Q sddm >> /dev/null; then
echo "It seems SDDM is installed."
else
echo "Installing SDDM"
sudo pacman -S --noconfirm sddm qt5-quickcontrols qt5-quickcontrols2 qt5-graphicaleffects
sudo systemctl enable sddm
fi
if [ -e "/usr/share/sddm/themes/win7welcomesddm/" ]; then
echo "It seems the theme is intalled."
else
git clone https://github.com/AudacityXD62/win7welcomesddm.git
sudo mv win7welcomesddm /usr/share/sddm/themes/
sddm_file_path="/usr/lib/sddm/sddm.conf.d/default.conf"
old_line=$(grep "Current=" $sddm_file_path)
# Check if the old line exists in the file
if [ -n "$old_line" ]; then
# Replace the line using sed
new_line='Current=win7welcomesddm'
sudo sed -i "s|$old_line|$new_line|" "$sddm_file_path"
echo "SDDM theme applied successfully!"
else
echo "SDDM theme not applied successfully!"
fi
fi
repo_lines="
[arcolinux_repo_3party]
SigLevel = Required TrustAll
Server = https://arcolinux.github.io/arcolinux_repo_3party/\$arch"
# Backup the original pacman.conf file
sudo cp /etc/pacman.conf /etc/pacman.conf.bak
# Add the repository lines to the end of pacman.conf
sudo bash -c "echo '$repo_lines' >> /etc/pacman.conf"
sudo pacman -Syyu
sudo pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
sudo pacman-key --lsign-key 3056513887B78AEB
sudo pacman -U --noconfirm 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst'
sudo pacman -U --noconfirm 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
sudo bash -c "echo -e \"\n[chaotic-aur]\" >> \"/etc/pacman.conf\""
sudo bash -c "echo -e \"Include = /etc/pacman.d/chaotic-mirrorlist\" >> \"/etc/pacman.conf\""
if pacman -Q hyprland >> /dev/null; then
echo "Normal packages are installed."
else
sudo pacman -Syyu --noconfirm sway \
htop \
papirus-icon-theme \
waybar \
eza \
qt5-wayland \
swaybg \
blueberry \
swaync \
wdisplays \
wl-clipboard \
grim \
slurp \
bat-extras \
fish \
starship \
pcmanfm-gtk3 \
file-roller \
p7zip \
unrar \
zathura \
zathura-pdf-mupdf \
gammastep \
lolcat \
ttf-ubuntu-nerd \
ttf-jetbrains-mono-nerd \
noto-fonts-emoji \
pavucontrol \
qt5ct \
foot \
networkmanager \
qutebrowser \
python-adblock \
mpv \
mpv-mpris \
polkit-gnome \
grimshot \
dracula-cursors-git \
light \
chafa \
ripgrep \
fzf \
hyprpicker-git \
swayimg \
emacs-wayland \
lf \
stow \
expac \
python-tldextract \
python-pynacl \
fastfetch \
git \
tree-sitter \
udiskie \
swaylock
# hyprland \
# neovim \
# otf-codenewroman-nerd \
fi
if pacman -Q yay >> /dev/null; then
echo "It seems yay is installed."
else
git clone https://aur.archlinux.org/yay-bin
cd yay-bin
makepkg -si --noconfirm
cd ..
rm -rf yay-bin/
fi
if pacman -Q rofi-lbonn-wayland-git >> /dev/null; then
echo "AUR essential packages are installed."
else
yay -S --noconfirm networkmanager-dmenu-git \
rofi-bluetooth-git \
ctpv-git \
cp-p-git \
rofi-lbonn-wayland-git
# clipboard \
# pokemonsay-newgenerations-git \
# fortune-mod-vimtips \
# udiskie-dmenu-git \
# sioyek \
# krabby-bin \
# dracula-gtk-theme \
# catppuccin-gtk-theme-mocha \
# catppuccin-gtk-theme-latte \
# bitwarden-rofi-git \
fi
if pacman -Q wpgtk >> /dev/null; then
echo "It seems pywal packages are installed."
else
echo "Installing pywal packages."
yay -S --noconfirm python-pywal16 \
python-inotify-simple \
python-psutil \
python-prctl \
python-daemon \
python-haishoku \
chaotic-aur/qt5-styleplugins \
chaotic-aur/qt6gtk2 \
python-zombie-imp \
gradience \
wpgtk \
gtk-theme-flat-color-git
# chaotic-aur/adw-gtk3
# using pip like this can break stuff, be careful
sudo pip install yapsy --break-system-packages
sudo pip install anyascii --break-system-packages
sudo pip install modern_colorthief --break-system-packages
wpg-install.sh -g
fi
if pacman -Q picard >> /dev/null; then
echo "Optional packages are installed."
else
yay -S --noconfirm appimagelauncher-bin \
keepassxc \
syncthing \
gnome-disk-utility \
freefilesync \
picard \
rsgain \
nicotine+ \
xdg-ninja \
otf-ipaexfont \
playerctl
# syncthing-gtk
fi
if [ -e "/etc/X11/xorg.conf.d/90-touchpad.conf" ]; then
echo "It seems you already have touchpad configuration. No changes have been made."
else
touchpad_conf='Section "InputClass"
Identifier "touchpad"
MatchIsTouchpad "on"
Driver "libinput"
Option "Tapping" "on"
Option "TappingButtonMap" "lrm"
Option "NaturalScrolling" "off"
Option "ScrollMethod" "twofinger"
EndSection'
sudo mkdir -p /etc/X11/xorg.conf.d
sudo touch /etc/X11/xorg.conf.d/90-touchpad.conf
echo "$touchpad_conf" | sudo tee /etc/X11/xorg.conf.d/90-touchpad.conf > /dev/null
echo "The changes have been applied. After reboot touchpad should work."
fi
if pacman -Q texlive-bin >> /dev/null; then
echo "Latex is setup."
else
sudo pacman -S --noconfirm texlive-bin texlive-binextra texlive-latexrecommended texlive-latexextra texlive-plaingeneric
sudo texconfig rehash
texhash
fi
git clone https://gitlab.com/imnotpua/grub_gtg
cd grub_gtg
echo "YOU NEED TO TYPE FONT SIZE AND THEME DIRECTORY"
sudo bash ./install.sh
cd ../
rm -rf grub_gtg
chsh -s "$(command -v fish)"
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install -o "omf"
fish omf --noninteractive
fish -c "omf install foreign-env"
rm omf
xdg-settings set default-web-browser org.qutebrowser.qutebrowser.desktop
gsettings set org.gnome.desktop.interface gtk-theme "FlatColor"
gsettings set org.gnome.desktop.interface icon-theme "Papirus-Dark"
gsettings set org.gnome.desktop.interface cursor-theme "Dracula-cursors"
gsettings set org.gnome.desktop.interface font-name "Ubuntu Nerd Font 10"
gsettings set org.gnome.desktop.interface document-font-name "Ubuntu Nerd Font 10"
gsettings set org.gnome.desktop.interface monospace-font-name "JetBrainsMono NFM 10"
gsettings set org.gnome.desktop.interface color-scheme "prefer-dark"
yay -S --noconfirm xdg-user-dirs
xdg-user-dirs-update
# enabling syncthing service
systemctl --user enable syncthing