-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
178 lines (144 loc) · 9.38 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
#!/bin/bash
#####################################
# Created by Fassih Fayyaz #
#####################################
###############################################################################
# # # #
# # Install Xorg and Qtile? (y/n) # #
# # # #
###############################################################################
read -p " $(printf "%$(($(tput cols)))s\n" '' | tr " " "#")
# # Install Xorg and Qtile? (y/n) # #
$(printf "%$(($(tput cols)))s\n" '' | tr " " "#") " install_wm
if [[ $install_wm == "y" || $install_wm == "Y" ]]; then
sudo pacman -S --noconfirm xorg-server xorg-xinit xorg-apps
echo "exec /usr/bin/qtile start" >> ~/.xinitrc
sudo pacman -S --noconfirm qtile alacritty thunar
sudo pacman -S --noconfirm python-psutil
sudo pacman -S --noconfirm python-pywal
fi
###############################################################################
# # # #
# # Install AUR Package Manager? (yay/paru) # #
# # # #
###############################################################################
read -p " $(printf "%$(($(tput cols)))s\n" '' | tr " " "#")
# # Install AUR Package Manager? (yay/paru) # #
$(printf "%$(($(tput cols)))s\n" '' | tr " " "#") " aur_helper
if [[ $aur_helper == "yay" || $aur_helper == "paru" ]]; then
sudo pacman -S --noconfirm base-devel
cd ~
git clone https://aur.archlinux.org/$aur_helper.git
cd $aur_helper
makepkg -si
fi
###############################################################################
# # # #
# # Setup Fast Mirrors? (y/n) # #
# # # #
###############################################################################
read -p " $(printf "%$(($(tput cols)))s\n" '' | tr " " "#")
# # Setup Fast Mirrors? (y/n) # #
$(printf "%$(($(tput cols)))s\n" '' | tr " " "#") " setup_mirrors
if [[ $setup_mirrors == "y" || $setup_mirrors == "Y" ]]; then
$aur_helper -S --noconfirm rate-mirrors
rate-mirrors arch | sudo tee /etc/pacman.d/mirrorlist
fi
###############################################################################
# # # #
# # Install Wayland? (y/n) # #
# # # #
###############################################################################
read -p " $(printf "%$(($(tput cols)))s\n" '' | tr " " "#")
# # Install Wayland? (y/n) # #
$(printf "%$(($(tput cols)))s\n" '' | tr " " "#") " install_wayland
if [[ $install_wayland == "y" || $install_wayland == "Y" ]]; then
sudo pacman -S --noconfirm python-pywlroots xorg-xwayland python-pyquery grim slurp cliphist
$aur_helper -S --noconfirm swww rofi-wayland swappy wl-clipboard
fi
###############################################################################
# # # #
# # Install Important Programs? (y/n) # #
# # # #
###############################################################################
read -p " $(printf "%$(($(tput cols)))s\n" '' | tr " " "#")
# # Install Important Programs? (y/n) # #
$(printf "%$(($(tput cols)))s\n" '' | tr " " "#") " install_programs
if [[ $install_programs == "y" || $install_programs == "Y" ]]; then
sudo pacman -S --noconfirm git fastfetch ntfs-3g xdg-user-dirs picom rofi thunar thunar-archive-plugin xarchiver unrar unzip stow obsidian mousepad vlc dunst starship mesa-utils alsa-utils pavucontrol playerctl pamixer
xdg-user-dirs-update
fi
###############################################################################
# # # #
# # Install Hyprland? (y/n) # #
# # # #
###############################################################################
read -p " $(printf "%$(($(tput cols)))s\n" '' | tr " " "#")
# # Install Hyprland? (y/n) # #
$(printf "%$(($(tput cols)))s\n" '' | tr " " "#") " install_wayland
if [[ $install_hyprland == "y" || $install_hyprland == "Y" ]]; then
sudo pacman -S --noconfirm mpv python-requests swaync waybar yt-dlp yad kitty
$aur_helper -S --noconfirm aylurs-gtk-shell hyprland hyprcursor hypridle hyprlock jq pyprland wlogout cava-git
fi
###############################################################################
# # # #
# # Install Fonts and Apps before adding dotfiles? (y/n) # #
# # # #
###############################################################################
read -p " $(printf "%$(($(tput cols)))s\n" '' | tr " " "#")
# # Install Fonts and Apps before adding dotfiles? (y/n) # #
$(printf "%$(($(tput cols)))s\n" '' | tr " " "#") " install_pre_dotfiles
if [[ $install_pre_dotfiles == "y" || $install_pre_dotfiles == "Y" ]]; then
sudo pacman -S --noconfirm ttf-jetbrains-mono-nerd ttf-droid ttf-noto-fonts-emoji sxiv firefox rofi-emoji rofi-calc xdotool btop eza zoxide fzf polkit-gnome
$aur_helper -S --noconfirm qtile-extras network-manager-applet
fi
###############################################################################
# # # #
# # Setup Dotfiles? (y/n) # #
# # # #
###############################################################################
read -p " $(printf "%$(($(tput cols)))s\n" '' | tr " " "#")
# # Setup Dotfiles? (y/n) # #
$(printf "%$(($(tput cols)))s\n" '' | tr " " "#") " setup_dotfiles
if [[ $setup_dotfiles == "y" || $setup_dotfiles == "Y" ]]; then
cd ~
git clone https://github.com/FassihFayyaz/dotfiles.git
cd dotfiles/
stow . --adopt
fi
###############################################################################
# # # #
# # Setup Themes? (y/n) # #
# # # #
###############################################################################
read -p " $(printf "%$(($(tput cols)))s\n" '' | tr " " "#")
# # Setup Themes? (y/n) # #
$(printf "%$(($(tput cols)))s\n" '' | tr " " "#") " setup_themes
if [[ $setup_themes == "y" || $setup_themes == "Y" ]]; then
sudo pacman -S --noconfirm gnome-themes-extra nwg-look papirus-icon-theme
$aur_helper -S --noconfirm adwaita-qt5 adwaita-qt6 qt5ct qt6ct python-pywalfox
fi
###############################################################################
# # # #
# # Install Optional Softwares? (y/n) # #
# # # #
###############################################################################
read -p " $(printf "%$(($(tput cols)))s\n" '' | tr " " "#")
# # Install Optional Softwares? (y/n) # #
$(printf "%$(($(tput cols)))s\n" '' | tr " " "#") " install_important
if [[ $install_important == "y" || $install_important == "Y" ]]; then
sudo pacman -S --noconfirm corectrl kodi flameshot copyq qbittorrent pavucontrol
$aur_helper -S --noconfirm vesktop-bin green-tunnel thorium-browser-bin noisetorch-bin polychromatic vscodium-bin otf-font-awesome-5
fi
###############################################################################
# # # #
# # Setup Gaming? (y/n) # #
# # # #
###############################################################################
read -p " $(printf "%$(($(tput cols)))s\n" '' | tr " " "#")
# # Setup Gaming? (y/n) # #
$(printf "%$(($(tput cols)))s\n" '' | tr " " "#") " setup_gaming
if [[ $setup_gaming == "y" || $setup_gaming == "Y" ]]; then
sudo pacman -S --noconfirm steam lutris goverlay mangohud gamemode wine-staging
$aur_helper -S --noconfirm protonup-qt-bin
fi