feat: update utilities lists + code cleanup
This commit is contained in:
parent
4dd0a71bda
commit
58bf52193e
@ -11,23 +11,26 @@
|
|||||||
|
|
||||||
|
|
||||||
#Lists of apps sorted by type and criticity
|
#Lists of apps sorted by type and criticity
|
||||||
base_list="dash xorg-server xorg-xinit xorg-xinput xorg-xsetroot xclip sxhkd xss-lock zsh neovim firefox"
|
base="dash xorg-server xorg-xinit xorg-xinput xorg-xsetroot xclip sxhkd"
|
||||||
utilities_list="xf86-video-intel pulseaudio pulseaudio-alsa pamixer zsh-syntax-highlighting zsh-history-substring-search dunst dunstify libnotify sxiv xwallpaper redshift htop ffmpeg imagemagick upower pacman-contrib"
|
base="xss-lock zsh neovim firefox man-db pass"
|
||||||
fonts_list="fira adobe-source-han-sans-jp-fonts adobe-source-han-sans-cn-fonts"
|
utilities="xf86-video-intel pulseaudio pulseaudio-alsa alsa-utils \
|
||||||
media_list="mpv zathura"
|
zsh-syntax-highlighting zsh-history-substring-search pulsemixer \
|
||||||
other_list="transmission-gtk texlive-core texlive-latexextra"
|
dunstify libnotify sxiv xwallpaper redshift htop ffmpeg imagemagick \
|
||||||
|
upower pacman-contrib"
|
||||||
|
fonts="iosevka-fixed-slab adobe-source-han-sans-jp-fonts adobe-source-han-sans-cn-fonts"
|
||||||
|
media="mpd ncmpcpp mpv zathura zathura-mupdf"
|
||||||
|
other="transmission-gtk texlive-core texlive-latexextra capitaine-cursors"
|
||||||
|
|
||||||
git_list="st dwm dmenu slock"
|
repos="st dwm dmenu slock"
|
||||||
|
|
||||||
build_list="st dwm dmenu slock"
|
|
||||||
|
|
||||||
services_list="systemd-timescyncd"
|
services_list="systemd-timescyncd"
|
||||||
|
|
||||||
|
|
||||||
git_clone() {
|
git_clone() {
|
||||||
git clone https://gitlab.com/swy7ch/$1 ~/$HOME/.local/src/suckless/$1
|
printf "\nDownloading $1..."
|
||||||
printf "\n$1 downloaded!"
|
git clone https://gitlab.com/swy7ch/$1 ~/$HOME/.local/src/tools/$1
|
||||||
cd ~/$1
|
printf "\tDone."
|
||||||
|
cd ~/$HOME/.local/src/tools/$1
|
||||||
git remote set-url origin git@gitlab.com:swy7ch/$1
|
git remote set-url origin git@gitlab.com:swy7ch/$1
|
||||||
git remote add upstream git://git.suckless.org/$1
|
git remote add upstream git://git.suckless.org/$1
|
||||||
printf "\n$1 setup complete!"
|
printf "\n$1 setup complete!"
|
||||||
@ -41,9 +44,9 @@ build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
read -p "\nInstalling $app? (y/N)" validation
|
read -p "\nInstalling $app? [Y/n]" validation
|
||||||
if [ $validation = "y" ]; then
|
if [ $validation != "n" ]; then
|
||||||
yay -S $app
|
paru -S $app
|
||||||
else
|
else
|
||||||
printf "\nSkipping $app"
|
printf "\nSkipping $app"
|
||||||
fi
|
fi
|
||||||
@ -61,99 +64,81 @@ enable_systemctl() {
|
|||||||
|
|
||||||
printf "\nConfiguring Arch...\n"
|
printf "\nConfiguring Arch...\n"
|
||||||
|
|
||||||
# Retrieving yay
|
# Retrieving paru
|
||||||
|
|
||||||
git clone https://aur.archlinux.org/yay.git
|
printf "\nGetting paru..."
|
||||||
cd yay
|
|
||||||
|
git clone https://aur.archlinux.org/paru.git
|
||||||
|
cd paru
|
||||||
makepkg -si
|
makepkg -si
|
||||||
|
|
||||||
printf "\nYAY is here !"
|
printf "\nparu is here !"
|
||||||
|
|
||||||
cd ~
|
cd ~
|
||||||
|
|
||||||
printf "\nLet's get the other apps"
|
|
||||||
|
|
||||||
# Installing apps
|
# Installing apps
|
||||||
|
|
||||||
printf "\nInstalling base\n"
|
printf "\nInstalling base..."
|
||||||
|
|
||||||
for app in $base_list; do
|
for app in $base; do
|
||||||
install $app
|
install $app
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\nDone."
|
for app in $utilities; do
|
||||||
|
|
||||||
printf "\nInstalling utilitaries\n"
|
|
||||||
|
|
||||||
for app in $utilities_list; do
|
|
||||||
install $app
|
install $app
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\nDone."
|
for app in $fonts; do
|
||||||
|
|
||||||
printf "\nInstalling fonts\n"
|
|
||||||
|
|
||||||
for app in $fonts_list; do
|
|
||||||
install $app
|
install $app
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\nDone."
|
for app in $media; do
|
||||||
|
|
||||||
printf "\nInstalling media apps\n"
|
|
||||||
|
|
||||||
for app in $media_list; do
|
|
||||||
install $app
|
install $app
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\nDone."
|
for app in $other; do
|
||||||
|
|
||||||
printf "\nInstalling other apps\n"
|
|
||||||
|
|
||||||
for app in $other_list; do
|
|
||||||
install $app
|
install $app
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\nDone."
|
printf "\nInstalling vim-plug..."
|
||||||
|
|
||||||
printf "\nInstalling vim-plug\n"
|
|
||||||
|
|
||||||
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
|
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
|
||||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
|
|
||||||
printf "\nDone."
|
printf "\tDone."
|
||||||
|
|
||||||
printf "\nInstallation complete !"
|
printf "\nInstallation complete !\n"
|
||||||
|
|
||||||
# Symlinking the necessary stuff
|
# Symlinking the necessary stuff
|
||||||
|
|
||||||
printf "\nDownloading personnal git repos..."
|
printf "\nDownloading personnal git repos..."
|
||||||
|
|
||||||
for repo in $git_list; do
|
for repo in $git; do
|
||||||
git_clone $repo
|
git_clone $repo
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\nDone."
|
printf "\tDone."
|
||||||
|
|
||||||
printf "\nCompiling tools..."
|
printf "\nCompiling tools..."
|
||||||
|
|
||||||
for tool in $build_list; do
|
for tool in $git; do
|
||||||
build $tool
|
build $tool
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\nDone."
|
printf "\tDone."
|
||||||
|
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf "\n!!! Don't forget to link an SSH key to your account !!!"
|
printf "\n!!! Don't forget to link an SSH key to your account !!!"
|
||||||
printf "\n!!! As of now, you can't pull nor push anything !!!"
|
printf "\n!!! As of now, you can't pull nor push anything !!!"
|
||||||
printf "\n"
|
printf "\n"
|
||||||
|
|
||||||
printf "\nEnabling systemctl services"
|
printf "\nEnabling systemctl services..."
|
||||||
|
|
||||||
for service in $services_list; do
|
for service in $services_list; do
|
||||||
enable_systemctl $service
|
enable_systemctl $service
|
||||||
done
|
done
|
||||||
|
|
||||||
printf "\nDone."
|
printf "\tDone."
|
||||||
|
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf "\n##################################################"
|
printf "\n##################################################"
|
||||||
|
Reference in New Issue
Block a user