-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathinstall.sh
executable file
·300 lines (284 loc) · 8.5 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
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
#!/usr/bin/env bash
# _______ _______ ______ _______ __
#| || _ || __ \| __|| |.-----.
#| - _|| || <|__ || || _ |
#|_______||___|___||___|__||_______||__|| __|
# |__|
# SpectrumOS - Embrace the Chromatic Symphony!
# By: gibranlp <[email protected]>
# MIT licence
#
function base() {
packets=(
'feh'
'unclutter'
'fuse-exfat'
'base-devel'
'alsa-utils'
'pulseaudio-alsa'
'pavucontrol'
'openssh'
'alacritty'
'xcolor'
'playerctl'
'scrot'
'flameshot'
'rofi'
'surfraw'
'python-pip'
'ranger'
'lxappearance'
'bmon'
'acpilight'
'lm_sensors'
'nm-connection-editor'
'arandr'
'python-psutil'
'python-xdg'
'python-iwlib'
'python-dateutil'
'ueberzug'
'xsettingsd'
'zsh'
'dunst'
'tk'
'transmission-cli'
'vlc'
'kdeconnect'
'lightdm-gtk-greeter-settings'
'reflector'
'rsync'
'curl'
'cmus'
'bc'
'neofetch'
'firefox'
'cmus'
'xorg-xkill'
'xdg-user-dirs'
'bluez'
'bluez-tools'
'bluez-utils'
'ripgrep'
'blueman'
'htop'
'locate'
'os-prober'
'gnome-disk-utility'
'networkmanager'
'unzip'
'xarchiver'
'tlp'
'gvfs'
'barrier'
'noto-fonts'
'noto-fonts-cjk'
'noto-fonts-emoji'
'ttf-dejavu'
'ttf-liberation'
'ttf-opensans'
'libayatana-appindicator'
'tlp'
'powertop'
'tumbler'
'redshift'
'libmicrodns' # Libraries for vlc and Chromecast
'protobuf' # Libraries for vlc and Chromecast
'linux'
'linux-headers'
'linux-docs'
'linux-lts'
'linux-lts-headers'
'linux-lts-docs'
'linux-zen-headers'
'linux-zen-docs'
'xorg-xdpyinfo'
'taskwarrior-tui'
'fzf'
'cups'
'thefuck'
'pamixer'
'gvfs-mtp'
'gvfs-nfs'
'gvfs-smb'
'exa'
'xclip'
'xdotool'
#'nvidia-dkms'
'cups'
'cups-pdf'
'man'
'zxel' # Needed for Calculator
)
for packet in "${packets[@]}"; do
echo "Instalando --> ${packet}"
sudo pacman -S "${packet}" --noconfirm --needed
done
}
function paru_install(){
git clone https://aur.archlinux.org/paru.git
cd paru
makepkg -si --noconfirm
cd ..
rm -rf paru
}
function aur_packages() {
packets=(
'qtile-git'
'farge'
#'python-pywalfox' # If you install firefox you will need this
'qtile-extras-git'
'caffeine-ng-git'
'visual-studio-code-bin'
'slack-desktop'
'brave'
'teams-for-linux'
'pulseaudio-bluethooth'
'telegram-desktop'
'google-chrome'
'wpgtk-git'
'insect'
'cava'
'thunar-extended'
'thunar-volman'
'hugo'
'gromit-mpx-git'
'nbfc'
'ntfs-3g'
'i3lock-color'
'i3lock-fancy-git'
'wal-telegram-git'
'picom-tyrone-git'
'lazy-docker'
'rofi-emoji'
'zathura-pdf-mupdf'
'zathura-pywal-git'
'zathura-ps'
'libby-git'
'python-rofi-git'
)
for packet in "${packets[@]}"; do
echo "Instalando --> ${packet}"
paru -S "${packet}" --noconfirm
done
}
function zsh(){
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting
}
function copy_dotfiles(){
wpg-install.sh -gio
wal -i ~/Pictures/Wallpapers/wall.jpg
mkdir -p ~/.config/alacritty
cp ~/QARSlp/dotfiles/.config/alacritty/alacritty.yml ~/.config/alacritty/alacritty.yml
cp ~/QARSlp/dotfiles/.shortcuts ~/
mkdir -p ~/.config/wal/templates
mkdir -p ~/.config/dunst
cp ~/QARSlp/dotfiles/.config/dunst/dunstrc ~/.config/wal/templates
cp ~/QARSlp/dotfiles/.config/rofi/QARSlp.rasi ~/.config/wal/templates
mkdir -p ~/.config/cava
cp ~/QARSlp/dotfiles/.config/cava/config ~/.config/wal/templates
mkdir -p ~/.config/ncspot
cp ~/QARSlp/dotfiles/.config/ncspot/config.toml ~/.config/ncspot/config.toml
mkdir -p ~/.fonts
cp ~/QARSlp/dotfiles/.fonts/* ~/.fonts
fc-cache -f -v
cp ~/QARSlp/dotfiles/.config/gromit-mpx.ini ~/.config
mkdir -p ~/.config/picom
cp ~/QARSlp/dotfiles/.config/picom/picom.conf ~/.config/picom/picom.conf
mkdir -p ~/.config/qtile
cp -r ~/QARSlp/dotfiles/.config/qtile/* ~/.config/qtile/
mkdir -p ~/.config/ranger
cp ~/QARSlp/dotfiles/.config/ranger/rc.conf ~/.config/ranger/rc.conf
mkdir -p ~/.config/rofi
cp -r ~/QARSlp/dotfiles/.config/rofi/* ~/.config/rofi/
sudo mkdir -p /root/.config/rofi
sudo cp -r ~/QARSlp/dotfiles/.config/rofi/* /root/.config/rofi/
sudo mkdir -p /root/.cache/wal
sudo mkdir -p /root/.fonts
sudo cp -r ~/.cache/wal/colors-rofi-dark.rasi /root/.cache/wal/
sudo timedatectl set-ntp true
xdg-settings set default-web-browser firefox.desktop
mkdir -p ~/.local/bin
cp -r ~/QARSlp/dotfiles/.local/bin/* ~/.local/bin
chmod +x ~/.local/bin/*
cp ~/QARSlp/dotfiles/.zshrc ~/
mkdir -p ~/.oh-my-zsh
cp ~/QARSlp/dotfiles/.oh-my-zsh/themes/* ~/.oh-my-zsh/themes/
mkdir ~/Pictures
sudo mkdir -p /usr/share/backgrounds
mkdir -p ~/Pictures/Wallpapers
cp -r ~/QARSlp/Wallpapers/* ~/Pictures/Wallpapers
sudo cp ~/QARSlp/Wallpapers/wall.jpg /usr/local/backgrounds/background.png
sudo mkdir -p /usr/local/themes
sudo cp -r ~/.local/share/themes/FlatColor /usr/local/themes
sudo chown -R $USER:$USER /usr/local/themes/FlatColor
sudo ln -s /usr/local/themes/FlatColor /usr/share/themes/FlatColor
sudo mkdir /usr/local/backgrounds
sudo chown -R $USER:$USER /usr/local/backgrounds
sudo cp ~/QARSlp/lightdm/lightdm-gtk-greeter.conf /etc/lightdm/lightdm-gtk-greeter.conf
sudo cp ~/QARSlp/pulse/system.pa /etc/pulse/system.pa
mkdir -p ~/notable
mkdir -p ~/book
mkdir -p ~/Articles
}
function web_apps(){
mkdir -p ~/Apps
cd ~/Apps
nativefier https://github.com/ --name github --single-instance
nativefier https://www.primevideo.com/ --name prime --single-instance --windevine
nativefier https://drive.google.com/drive/shared-drives --name drive --single-instance
nativefier https://www.figma.com/files/recent?fuid=1177005402390460721 --name figma --single-instance
nativefier https://admin.google.com/?rapt=AEjHL4N0yGwzCoucouWtW0MKQj6kYhIIfkadjCaxgZTjhnUCSuKHDVoVPYARCWt1YOfZ542j11diwR4Td8HEVfzHv_vT509KMg --name admin --single-instance
nativefier https://calendar.google.com/calendar/u/0/r?pli=1 --name calendar --single-instance
nativefier https://www.notion.so/helgen/00-Helgen-Ltd-42570ee0ace34d19b7d0a91955b7d976--name notion --single-instance
nativefier https://www.overleaf.com/project --name overleaf --single-instance
nativefier https://meet.google.com/ --name meet --single-instance
nativefier https://app.clockify.me/tracker# --name clockify --single-instance
nativefier https://admin.microsoft.com/Adminportal/Home#/homepage --name madmin --single-instance
nativefier https://helgentrial.atlassian.net/jira/software/projects/IR/boards/1 --name jira --single-instance
sudo ln -s ~/Apps/PrimeVideo/WelcometoPrimeVideo /usr/bin/prime
sudo ln -s ~/Apps/drive/drive /usr/bin/drive
sudo ln -s ~/Apps/admin/admin /usr/bin/admin
sudo ln -s ~/Apps/calendar/calendar /usr/bin/calendar
sudo ln -s ~/Apps/notion/notion /usr/bin/notion
sudo ln -s ~/Apps/overleaf/overleaf /usr/bin/overleaf
sudo ln -s ~/Apps/figma/figma /usr/bin/figma
sudo ln -s ~/Apps/meet/meet /usr/bin/meet
sudo ln -s ~/Apps/github/github /usr/bin/github
sudo ln -s ~/Apps/clockify/clockify /usr/bin/clockify
sudo ln -s ~/Apps/jira/jira /usr/bin/jira
}
function post(){
timedatectl set-local-rtc 1
timedatectl set-timezone America/Mexico_City
sudo systemctl enable bluetooth.service
sudo systemctl start bluetooth.service
sudo systemctl enable sshd.service
sudo systemctl start sshd.service
sudo systemctl enable tlp.service
journalctl --vacuum-size=100M
journalctl --vacuum-time=2weeks
}
function install_docker(){
sudo pacman -S docker docker-buildx docker-compose --noconfirm --needed
sudo systemctl enable docker.service
sudo systemctl start docker.service
sudo usermod -aG docker $USER
}
function neovim(){
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
}
# sudo pacman -Syyu --noconfirm
# sudo pacman -Rcns qtile --noconfirm
# paru_install
# base
#pip install -r pip.txt --break-system-packages
# aur_packages
# zsh
#copy_dotfiles
#post
#web_apps
#update
#install_docker