-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprograms.sh
More file actions
executable file
·202 lines (176 loc) · 5.29 KB
/
Copy pathprograms.sh
File metadata and controls
executable file
·202 lines (176 loc) · 5.29 KB
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
clear
echo -e "We shall now install the most important apps, they kinda need to exist\n\n"
echo -e "\nInstalling yay...\n"
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
rm -rf yay
echo -e "\nInstalling pacman programs...\n"
clear
echo -e "We shall now install the most important apps, they kinda need to exist\n\n"
echo -e "\nInstalling yay...\n"
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd ..
rm -rf yay
# Main pacman programs
echo -e "\nInstalling pacman programs...\n"
# Define packages separately for easy modification
MAIN_PACKAGES=(
"go"
"curl"
"xdg-desktop-portal-gtk"
"xdg-desktop-portal-gnome"
"xwayland-satellite"
"waybar"
"kitty"
"fish"
"niri"
"sddm"
"thunar"
"tumbler"
"firefox"
"fzf"
"noto-fonts-emoji"
"eza"
"mako"
"starship"
"fastfetch"
"bluez"
"bluez-utils"
"bluetui"
"os-prober"
"pavucontrol"
"openssl-1.1"
"brightnessctl"
"swww"
"zoxide"
"linux-headers"
"rust"
"rust-src"
"pipewire"
"pipewire-pulse"
"pipewire-alsa"
"wireplumber"
"man"
)
# Install packages using the array
sudo pacman -S --noconfirm --needed "${MAIN_PACKAGES[@]}"
echo -e "\nTurning default shell to fish...\n"
chsh -s /usr/bin/fish
echo -e "\nInstalling Neovim...\n"
sudo pacman -S --noconfirm --needed gcc make git ripgrep fd unzip neovim npm luarocks github-cli imagemagick wl-clipboard lua51
git clone https://github.com/New9c/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim
echo -e "\nInstalling AUR programs...\n"
yay -S --noconfirm vencord nwg-look vicinae
# Optional
read -p "Do you wanna install optional programs? [y/N] " confirm
confirm=${confirm,,}
if [[ "$confirm" == "y" || "$confirm" == "yes" ]]; then
echo -e "\nCopying pacman.conf...\n"
sudo cp etc/pacman.conf /etc/pacman.conf
sudo pacman -Sy
# Define optional pacman packages separately
OPTIONAL_PACMAN_PACKAGES=(
"gimp"
"nano"
"alacritty"
"wget"
"less"
"virtualbox"
"kdenlive"
"julia"
"ruby"
"gnuplot"
"chromium"
"filezilla"
"bottom"
"btop"
"twitch-tui"
"swaybg"
"swaylock"
"steam"
"mangohud"
"gamemode"
"tldr"
"lolcat"
"cowsay"
"figlet"
"fortune-mod"
)
# Define optional AUR packages separately
OPTIONAL_AUR_PACKAGES=(
"spotify"
"miniconda3"
"sl"
)
# Install optional packages
sudo pacman -S --noconfirm --needed "${OPTIONAL_PACMAN_PACKAGES[@]}"
yay -S --noconfirm --needed "${OPTIONAL_AUR_PACKAGES[@]}"
# Unimatrix
sudo curl -L https://raw.githubusercontent.com/will8211/unimatrix/master/unimatrix.py -o /usr/local/bin/unimatrix
sudo chmod a+rx /usr/local/bin/unimatrix
# OKey
LATEST_VERSION=$(curl -s "https://api.github.com/repos/New9c/OKey/releases/latest" | grep -oP '"tag_name":\s*"\K(.*)(?=")')
sudo curl -L "https://github.com/New9c/OKey/releases/download/$LATEST_VERSION/OKey" -o /usr/local/bin/OKey
sudo chmod +x /usr/local/bin/OKey
fi
# Paru
read -p "Do you wanna have AUR helper paru? [y/N] " confirm
confirm=${confirm,,}
if [[ "$confirm" == "y" || "$confirm" == "yes" ]]; then
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
cd ..
rm -rf paru
fi
# Services
echo -e "\nTurning on Bluetooth...\n"
systemctl enable bluetooth.service
echo -e "\nTurning on Audio...\n"
systemctl --user enable pipewire pipewire-pulse wireplumber
echo -e "\nDone! Please reboot if you are running programs.sh on your own C:\n"
sleep 1
echo -e "\nTurning default shell to fish...\n"
chsh -s /usr/bin/fish
echo -e "\nInstalling Neovim...\n"
sudo pacman -S --noconfirm --needed gcc make git ripgrep fd unzip neovim npm luarocks github-cli imagemagick wl-clipboard lua51
git clone https://github.com/New9c/kickstart.nvim.git "${XDG_CONFIG_HOME:-$HOME/.config}"/nvim
echo -e "\nInstalling AUR programs...\n"
yay -S --noconfirm vencord nwg-look vicinae
# Optional
read -p "Do you wanna install optional programs? [y/N] " confirm
confirm=${confirm,,}
if [[ "$confirm" == "y" || "$confirm" == "yes" ]]; then
echo -e "\nCopying pacman.conf...\n"
sudo cp etc/pacman.conf /etc/pacman.conf
sudo pacman -Sy
sudo pacman -S --noconfirm --needed gimp nano alacritty wget less virtualbox kdenlive julia ruby gnuplot chromium filezilla bottom btop twitch-tui swaybg swaylock steam mangohud gamemode tldr lolcat cowsay figlet fortune-mod
yay -S --noconfirm --needed spotify miniconda3 sl
# Unimatrix
sudo curl -L https://raw.githubusercontent.com/will8211/unimatrix/master/unimatrix.py -o /usr/local/bin/unimatrix
sudo chmod a+rx /usr/local/bin/unimatrix
# OKey
LATEST_VERSION=$(curl -s "https://api.github.com/repos/New9c/OKey/releases/latest" | grep -oP '"tag_name":\s*"\K(.*)(?=")')
sudo curl -L "https://github.com/New9c/OKey/releases/download/$LATEST_VERSION/OKey" -o /usr/local/bin/OKey
sudo chmod +x /usr/local/bin/OKey
fi
# Paru
read -p "Do you wanna have AUR helper paru? [y/N] " confirm
confirm=${confirm,,}
if [[ "$confirm" == "y" || "$confirm" == "yes" ]]; then
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si
cd ..
rm -rf paru
fi
echo -e "\nTurning on Bluetooth...\n"
systemctl enable bluetooth.service
echo -e "\nTurning on Audio...\n"
systemctl --user enable pipewire pipewire-pulse wireplumber
echo -e "\nDone! Please reboot if you are running programs.sh on your own C:\n"
sleep 1