-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·202 lines (164 loc) · 3.12 KB
/
setup.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
#!/bin/bash
default_packages=(
pacman-contrib
base-devel
linux-headers
#qt5-wayland
#qt5ct
#qt6-wayland
#qt6ct
#qt5-svg
#qt5-quickcontrols2
#qt5-graphicaleffects
#gtk3
#polkit-gnome
#hyprland
#hyprland-workspaces
#hyprshade
#hypridle
#hyprlock
#xdg-desktop-portal-hyprland
#zathura
#zathura-pdf-mupdf
#pipewire
#wireplumber
#pamixer
pavucontrol
bluez
bluez-utils
blueman
#gvfs
#gvfs-smb
#gvfs-mtp
#mako
#waybar
#wofi
#eww
#swaylock
#wlogout
#wl-clipboard
#cliphist
#swappy
#grim
#slurp
zsh
stow
bat
htop
btop
#nvtop
kitty
tmux
zellij
mc
fzf
ripgrep
zoxide
neovim
reflector
rsync
jq
ansible
terraform
packer
aws-cli
pass
browserpass
rbenv
ruby-build
#thunar
#thunar-archive-plugin
#tumbler
#file-roller
papirus-icon-theme
#lxappearance
#xfce4-settings
#nwg-look
ttf-jetbrains-mono-nerd
ttf-font-awesome
#ttf-pt-root-ui
ttf-ibm-plex
noto-fonts-emoji
jre-openjdk
google-chrome
telegram-desktop
slack-desktop
github-desktop-bin
visual-studio-code-bin
docker-desktop
dbeaver
obsidian
#swww
xpadneo-dkms
gamemode
mangohud
mpv
yt-dlp
wine-staging
wine-mono
wine-gecko
winetricks
flameshot-git
pinta
xournalpp
)
# set some colors
CNT="[\e[1;36mNOTE\e[0m]"
COK="[\e[1;32mOK\e[0m]"
CER="[\e[1;31mERROR\e[0m]"
CAT="[\e[1;37mATTENTION\e[0m]"
CWR="[\e[1;35mWARNING\e[0m]"
CAC="[\e[1;33mACTION\e[0m]"
INSTALL_LOG="install.log"
show_progress() {
while ps | grep $1 &> /dev/null;
do
echo -n "."
sleep 1
done
echo -en "Done!\n"
}
install_software() {
if yay -Q $1 &>> /dev/null ; then
echo -e "$COK - $1 is already installed."
else
echo -en "$CNT - Now installing $1 ."
yay -S --noconfirm $1 &>> $INSTALL_LOG &
show_progress $!
if yay -Q $1 &>> /dev/null ; then
echo -e "\e[1A\e[K$COK - $1 was installed."
else
# if this is hit then a package is missing, exit to review log
echo -e "\e[1A\e[K$CER - $1 install had failed, please check the install.log"
exit
fi
fi
}
for PACKAGE in ${default_packages[@]}; do
install_software $PACKAGE
done
#rm -rf ~/.config/hypr
#rm -rf ~/.config/waybar
#rm -rf ~/.config/wofi
#rm -rf ~/.config/eww
#rm -rf ~/.config/swaylock
#rm -rf ~/.config/wlogout
rm -rf ~/.config/htop
rm -rf ~/.config/kitty
#rm -rf ~/.config/alacritty
rm -rf ~/.config/zellij
rm -rf ~/.config/mc
rm -rf ~/.config/mako
rm -rf ~/.config/gtk-3.0
rm -rf ~/.config/qt6ct
rm -rf ~/.config/xsettingsd
rm -rf ~/.config/xfce4
rm -rf ~/.config/nvim
rm -rf ~/.config/fontconfig
mkdir -p ~/.icons
rm -rf ~/.icons/default
rm -rf ~/.gtkrc-2.0
stow -v -t ~/.config .config
stow -v -t ~/.icons .icons
ln -s "$(pwd)/.gtkrc-2.0" ~/.gtkrc-2.0
# /usr/lib/plasma-dbus-run-session-if-needed /usr/bin/startplasma-wayland