-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathend
377 lines (312 loc) · 6.32 KB
/
end
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
#!/bin/bash
printf '\033c'
cd $HOME
rm ./installation.log
install() {
for pkg in "$@"; do
yay -S --noconfirm "$pkg"
if [ $? -ne 0 ]; then
echo "$pkg" >> ~/installation.log
fi
done
}
service_st(){
sudo gpasswd -a $USER input
sudo modprobe snd_aloop
sudo systemctl enable auto-cpufreq
sudo systemctl enable thermald
sudo systemctl enable bluetooth
systemctl --user enable pipewire.service pipewire-pulse.service wireplumber.service
#systemctl --user enable mpd.service
}
storage(){
sudo chown shadow:shadow /media/storage
[ -d ~/Documents ] && rm -rf ~/Documents
[ ! -d ~/Videos ] && mkdir ~/Videos
ln -s /media/storage/Movies ~/Videos/Movies
ln -s /media/storage/courses ~/Videos/courses
ln -s /media/storage/Documents ~/Documents
ln -s /media/storage/wall/ ~/wall
ln -s /media/storage/code/ ~/code
}
git_cfg() {
printf '\033c'
echo "[!] Setting Up Git config "
git config --global user.email "[email protected]"
git config --global user.name "shadowelite"
git config --global credential.helper store
git config --global core.editor nvim
}
aur_install() {
sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -sifr --noconfirm
}
install_dots() {
printf '\033c'
echo "[*] Installing Dotfiles "
[ ! -d ~/.config/ ] && mkdir -p ~/.config
git clone --depth=1 https://github.com/shadowelite-sec/hypr ~/.dot
cd ~/.dot
stow --adopt */
}
home_ctl(){
cd
mkdir ~/ctf ~/screenshot
mkdir -p ~/.local/share/themes
git clone --depth=1 https://github.com/B21q/Corvus.git ~/.local/share/themes/Corvus
git clone --depth=1 https://github.com/vinceliuice/Colloid-icon-theme.git /tmp/icons
cd /tmp/icons
./install.sh -t all -s all
pip install --break-system-packages --index-url https://test.pypi.org/simple/ pywalfox==2.8.0rc1
pywalfox install
# zap install
cd
# change shell
chsh -s /bin/zsh
wget https://raw.githubusercontent.com/shadowelite-sec/scripts/main/limitd
chmod +x limitd
./limitd 80
}
setup_sddm(){
echo '
[General]
DefaultSession=hyprland.desktop
DisplayServer=x11
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell
InputMethod=
Numlock=none
[Theme]
Current=where_is_my_sddm_theme
[Wayland]
CompositorCommand=Hyprland
EnableHiDPI=true
SessionDir=/usr/share/wayland-sessions' | sudo tee /etc/sddm.conf > /dev/null
git clone https://github.com/shadowelite-sec/where-is-my-sddm-theme /tmp/sddm_theme
cd /tmp/sddm_theme
sudo ./install.sh
cd
sudo systemctl enable sddm.service
}
hypr_pkgs=(
# requirements
meson
cmake
bc
brightnessctl
libpulse
nodejs
npm
wlr-randr-git
cpio
gtkmm-4.0
gtk4-layer-shell
# python dependencies
python
python3
python-pip
python-pipx
python-packaging
# dots manager and file
stow
xdg-user-dirs
# hyprland core
hyprutils-git
hyprlang-git
hyprwayland-scanner-git
#hyprland-git
hyprland
xdg-desktop-portal-hyprland-git
hypridle-git
hyprlock-git
hyprpicker-git
hyprpolkitagent-git
# audio
pipewire
pipewire-pulse
pipewire-alsa
pipewire-audio
pipewire-jack
pipewire-jack
gst-plugin-pipewire
wireplumber
waybar-git
# terminal
foot-git
# wallpaper
swww
waypaper
wallust-git
# logout
wlogout-git
# font
ttf-sourcecodepro-nerd
# scratchpad
pyprland
libinput-gestures
swaync
rofi-lbonn-wayland-git
# waybar font
ttf-jetbrains-mono-nerd
# clipboard
wl-clipboard
wl-clip-persist-git
clipse
# gtk & qt
kvantum
qt5ct
qt6ct
qt5-wayland
qt6-wayland
nwg-look-bin
# polkit agent
#polkit-kde-agent
# display manager
sddm
# screen shot
grim
slurp
swappy-git
# pywal
python-pywal
wal-telegram-git
sxiv
# shell
jq
zsh
starship
# network
network-manager-applet
blueman
# grub and splash
plymouth
plymouth-theme-optimus-git
grub-theme-cyberre
# OSD
syshud
# asus
permode
# Add more packages here...
)
user_pkgs=(
man
man-pages
# browsers
vimb
firefox-esr-bin
# social
#discord
telegram-desktop
vesktop-bin
# media
#nemo
#nemo-fileroller
#tumbler
dolphin
qt5-imageformats
archlinux-xdg-menu
ffmpegthumbs
ark
#ffmpegthumbnailer
gvfs
gvfs-mtp
mpv
mpv-thumbfast-git
qbittorrent
mugshot
# screen record
obs-studio
#wlrobs-hg
# network
net-tools
wireless_tools
# basic utils
wget
unzip
zip
tar
bat
unrar
p7zip
grc
mlocate
# document readers
zaread
zathura-pdf-mupdf
sioyek
pdfarranger
# LaTeX
texlive
# file manager
lf
#ranger-git
# shell
libsixel
thefuck
glow
gum
# mouse and keybord rgb
piper
openrgb
noto-fonts-emoji
#betterdiscord-installer-bin
# termal manager
auto-cpufreq
thermald
# code
visual-studio-code-bin
neovim
# network
linux-wifi-hotspot
# hyprvizer
binder_linux-dkms
# spotify and music
sptlrx-bin
tauon-music-box
#mpc
#mpd
#ncmpcpp
cava-git
pamixer
easyeffects
# Add more packages here...
)
nvidia_pkgs=(
nvidia-dkms
nvidia-utils
libva
libva-nvidia-driver-git
nvidia-prime
)
gameing=(
wine
lutris
rofi-games
steam
gamescope
gamemode
proton-ge-custom-bin
protonup-qt
)
aur_install
echo "Installing Hyprland Essential packages"
install "${hypr_pkgs[@]}"
install_dots
echo "Installing User Applications and Utils"
install "${user_pkgs[@]}"
spotup
echo "Installing Nvidia Pkgs"
install "${nvidia_pkgs[@]}"
nvidia_plymouth
git_cfg
service_st
home_ctl
storage
setup_sddm
XDG_MENU_PREFIX=arch- kbuildsycoca6
# clean
rm ~/limitd
rm -rf ~/yay
echo "Installation complete."
echo "Everything is Done , Now Reboot"