-
Notifications
You must be signed in to change notification settings - Fork 1
/
openbox_install.sh
executable file
·285 lines (249 loc) · 6.49 KB
/
openbox_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
#!/usr/bin/env bash
#-----------------------------------------------------------------------
# █████████ █████
# ███░░░░░███ ░░███
# ███ ░░░ ████████ █████ ████ █████ ██████ ███████ ██████
#░███ ░░███░░███░░███ ░███ ███░░ ███░░███ ███░░███ ███░░███
#░███ ░███ ░░░ ░███ ░███ ░░█████ ░███████ ░███ ░███ ░███ ░███
#░░███ ███ ░███ ░███ ░███ ░░░░███░███░░░ ░███ ░███ ░███ ░███
# ░░█████████ █████ ░░████████ ██████ ░░██████ ░░████████░░██████
# ░░░░░░░░░ ░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░
#-------------------------------------------------------------------------
pacman -Sy --noconfirm
echo "-------------------------------------------------"
echo " Installing additional Packages "
echo "-------------------------------------------------"
PKGS=(
'rsync'
'mesa' # Essential Xorg First
'xorg'
'xorg-apps'
'xorg-drivers'
'xorg-xkill'
'xorg-xinit'
'xterm'
'alsa-plugins' # audio plugins
'alsa-utils' # audio utils
'ark' # compression
'bluedevil'
'breeze'
'breeze-gtk'
'bridge-utils'
'code' # Visual Studio code
'dtc'
'exfat-utils'
'extra-cmake-modules'
'flex'
'fuse2'
'fuse3'
'fuseiso'
'gcc'
'gimp' # Photo editing
'gparted' # partition management
'gst-libav'
'gst-plugins-good'
'gst-plugins-ugly'
'haveged'
'jdk-openjdk' # Java 17
'kitty'
'libdvdcss'
'lsof'
'lzop'
'm4'
'milou'
'ntfs-3g'
'okular'
'openbsd-netcat'
'discover'
'oxygen'
'p7zip'
'patch'
'pkgconf'
'powerdevil'
'powerline-fonts'
'print-manager'
'pulseaudio'
'pulseaudio-alsa'
'pulseaudio-bluetooth'
'python-notify2'
'python-psutil'
'python-pyqt5'
'python-pip'
'qemu'
'snapper'
'spectacle'
'steam'
'swtpm'
'terminus-font'
'ufw'
'usbutils'
'vim'
'virt-manager'
'virt-viewer'
'wine-gecko'
'wine-mono'
'winetricks'
'xdg-user-dirs'
'zeroconf-ioslave'
'xfce4-power-manager'
'inkscape'
'nm-applet'
'lightdm'
'gvfs'
'gvfs-smb'
'gvfs-nfs'
'npm'
'flatpak'
'base-devel'
)
#installing additional packages
for PKG in "${PKGS[@]}"; do
echo "INSTALLING: ${PKG}"
sudo pacman -S "$PKG" --noconfirm --needed
done
echo -e "\nINSTALLING AUR SOFTWARE\n"
# You can solve users running this script as root with this and then doing the same for the next for statement. However I will leave this up to you.
echo "CLONING: YAY"
cd ~
git clone "https://aur.archlinux.org/yay.git"
cd ${HOME}/yay
makepkg -si --noconfirm
cd ~
PKGS=(
'autojump'
'brave-bin' # Brave Browser
'dxvk-bin' # DXVK DirectX to Vulcan
'github-desktop-bin' # Github Desktop sync
'ocs-url' # install packages from websites
'snap-pac'
'zramd'
'python'
'psmisc'
'xorg-server'
'xorg-xrandr'
'xorg-xprop'
'xorg-xwininfo'
'imagemagick'
'ffmpeg'
'wireless_tools'
'openbox'
'brightnessctl'
'nitrogen'
'dunst'
'tint2'
'lxsession'
'xclip'
'scrot'
'mpc'
'thunar'
'thunar-archive-plugin'
'thunar-volman'
'ffmpegthumbnailer'
'tumbler'
'w3m'
'viewnior'
'mpv'
'pavucontrol'
'parcellite'
'gsimplecal'
'neofetch'
'htop'
'xsettingsd'
'xautolock'
'obmenu-generator'
'perl-gtk3'
'picom-git'
'rofi'
'playerctl'
'spicetify-cli'
'geany'
'spotify'
'web-greeter'
'appimagelauncher'
'lxappearance-obconf'
'downgrade'
'auto-cpufreq'
'preload'
'ani-cli'
'timeshift-bin'
'timeshift-autosnap'
'blueman'
#'lightdm-webkit-theme-osmos'
)
for PKG in "${PKGS[@]}"; do
yay -S --noconfirm $PKG
done
#switching to snapper for better usefulness with btrfs
# echo "CLONING: Timeshift"
# cd ~
# git clone "https://aur.archlinux.org/timeshift.git"
# cd ${HOME}/timeshift
# makepkg -si --noconfirm
# cd ~
echo " enter the name of theme you want to install"
echo "options (saber)"
read themeinstall
if [[ ${themeinstall} =~ "saber" ]]; then
echo "installing addital packages for themes"
PKGS=(
'ttf-droid'
'ttf-hack'
'ttf-meslo' # Nerdfont package
'ttf-roboto'
)
for PKG in "${PKGS[@]}"; do
yay -S --noconfirm $PKG
done
# cd ~
# wget https://github.com/JezerM/web-greeter/archive/refs/tags/3.4.0.tar.gz
# tar -xvf 3.4.0.tar.gz
# cd web-greeter-3.4.0
# sudo make install
# cd ~
git clone https://github.com/kud04rk/leafpad.git
cd leafpad
./configure
make
sudo make install-strip
cd ~
cd ~
git clone https://github.com/kud04rk/Openbox_Dotfiles.git
rsync -avxHAXP --exclude '.git*' --exclude 'LICENSE' --exclude '*.md' $HOME/Openbox_Dotfiles/dotfiles/. ~/
cd $HOME/.icons
tar -xJf $HOME/.icons/Papirus-Custom.tar.xz
tar -xJf $HOME/.icons/Papirus-Dark-Custom.tar.xz
tar -xvf $HOME/.icons/capitaine-cursors.tar.gz
sudo ln -vs $HOME/.icons/Papirus-Custom /usr/share/icons/
sudo ln -vs $HOME/.icons/Papirus-Dark-Custom /usr/share/icons/
sudo ln -vs $HOME/.icons/capitaine-cursors /usr/share/icons/
ln -vs $HOME/.kitty-themes/themes/crusedo.conf $HOME/.config/kitty/theme.conf
cd ~
# export PATH=$PATH:~/.local/bin
# cp -r $HOME/OpenboxInstall/dotfiles/* $HOME/.config/
#
# nody greeter for lightdm theme
# git clone https://github.com/JezerM/nody-greeter.git
# cd nody-greeter
# npm install
# npm run rebuild
# npm run build
# node make install
git clone https://github.com/kud04rk/LightdmTheme.git
sudo cp -r $HOME/LightdmTheme /usr/share/web-greeter/themes/
sudo rm -r $HOME/.oh-my-zsh/
sudo rm .zshrc
flatpak install flathub io.github.celluloid_player.Celluloid
flatpak install flathub org.onlyoffice.desktopeditors
flatpak install flathub com.github.wwmm.pulseeffects
sudo pacman -S zsh && chsh -s $(command -v zsh) --noconfirm --needed
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
echo "-------------------------------------------------"
echo " Installing flatpak Packages "
echo "-------------------------------------------------"
else
export PATH=$PATH:~/.local/bin
fi
echo "-------------------------------------------------"
echo " Now run the enabling_services.sh as root "
echo " sudo -su root "
echo "-------------------------------------------------"