feat: update arch_setup
This commit is contained in:
parent
d3096d669f
commit
257f900c55
@ -11,17 +11,17 @@
|
|||||||
|
|
||||||
|
|
||||||
#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 xsetroot sxhkd xss-lock zsh neovim gtk2 brave"
|
base_list="dash xorg-server xorg-xinit xorg-xinput xorg-xsetroot xclip sxhkd xss-lock zsh neovim firefox"
|
||||||
utilities_list="xf86-video-intel pulseaudio pulseaudio-alsa pamixer xprop zsh-syntax-highlighting zsh-history-substring-search dunst dunstify libnotify sxiv xwallpaper redshift htop ffmpeg imagemagick upower pacman-contrib"
|
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"
|
||||||
fonts_list="fira adobe-source-han-sans-jp-fonts adobe-source-han-sans-cn"
|
fonts_list="fira adobe-source-han-sans-jp-fonts adobe-source-han-sans-cn-fonts"
|
||||||
media_list="mpv zathura"
|
media_list="mpv zathura"
|
||||||
other_list="transmission-gtk texlive-core texlive-bin texlive-latexetra"
|
other_list="transmission-gtk texlive-core texlive-latexextra"
|
||||||
|
|
||||||
git_list="st dwm dmenu slock"
|
git_list="st dwm dmenu slock"
|
||||||
|
|
||||||
build_list="st dwm dmenu slock"
|
build_list="st dwm dmenu slock"
|
||||||
|
|
||||||
services_list="netctl-auto@wlp4s0 systemd-timescyncd"
|
services_list="systemd-timescyncd"
|
||||||
|
|
||||||
|
|
||||||
git_clone() {
|
git_clone() {
|
||||||
@ -29,10 +29,8 @@ git_clone() {
|
|||||||
printf "\n$1 downloaded!"
|
printf "\n$1 downloaded!"
|
||||||
cd ~/$1
|
cd ~/$1
|
||||||
git remote set-url origin git@gitlab.com:swy7ch/$1
|
git remote set-url origin git@gitlab.com:swy7ch/$1
|
||||||
if [ "dotfiles" != $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!"
|
|
||||||
fi
|
|
||||||
cd
|
cd
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -43,16 +41,16 @@ build() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
install() {
|
install() {
|
||||||
read -p "Installing $APP? (y/N)" validation
|
read -p "\nInstalling $app? (y/N)" validation
|
||||||
if [ $validation = "y" ]; then
|
if [ $validation = "y" ]; then
|
||||||
yay -S $APP
|
yay -S $app
|
||||||
else
|
else
|
||||||
printf "\nSkipping $APP"
|
printf "\nSkipping $app"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
enable_systemctl() {
|
enable_systemctl() {
|
||||||
sudo systemctl enable $1.service
|
sudo systemctl enable $1
|
||||||
}
|
}
|
||||||
|
|
||||||
##################################################
|
##################################################
|
||||||
@ -61,10 +59,9 @@ enable_systemctl() {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
printf "\nConfiguring Arch..."
|
printf "\nConfiguring Arch...\n"
|
||||||
|
|
||||||
# Retrieving yay
|
# Retrieving yay
|
||||||
# We need git
|
|
||||||
|
|
||||||
git clone https://aur.archlinux.org/yay.git
|
git clone https://aur.archlinux.org/yay.git
|
||||||
cd yay
|
cd yay
|
||||||
@ -78,7 +75,7 @@ printf "\nLet's get the other apps"
|
|||||||
|
|
||||||
# Installing apps
|
# Installing apps
|
||||||
|
|
||||||
printf "\nInstalling base"
|
printf "\nInstalling base\n"
|
||||||
|
|
||||||
for app in $base_list; do
|
for app in $base_list; do
|
||||||
install $app
|
install $app
|
||||||
@ -86,7 +83,7 @@ done
|
|||||||
|
|
||||||
printf "\nDone."
|
printf "\nDone."
|
||||||
|
|
||||||
printf "\nInstalling utilitaries"
|
printf "\nInstalling utilitaries\n"
|
||||||
|
|
||||||
for app in $utilities_list; do
|
for app in $utilities_list; do
|
||||||
install $app
|
install $app
|
||||||
@ -94,7 +91,7 @@ done
|
|||||||
|
|
||||||
printf "\nDone."
|
printf "\nDone."
|
||||||
|
|
||||||
printf "\nInstalling fonts"
|
printf "\nInstalling fonts\n"
|
||||||
|
|
||||||
for app in $fonts_list; do
|
for app in $fonts_list; do
|
||||||
install $app
|
install $app
|
||||||
@ -102,7 +99,7 @@ done
|
|||||||
|
|
||||||
printf "\nDone."
|
printf "\nDone."
|
||||||
|
|
||||||
printf "\nInstalling media apps"
|
printf "\nInstalling media apps\n"
|
||||||
|
|
||||||
for app in $media_list; do
|
for app in $media_list; do
|
||||||
install $app
|
install $app
|
||||||
@ -110,7 +107,7 @@ done
|
|||||||
|
|
||||||
printf "\nDone."
|
printf "\nDone."
|
||||||
|
|
||||||
printf "\nInstalling other apps"
|
printf "\nInstalling other apps\n"
|
||||||
|
|
||||||
for app in $other_list; do
|
for app in $other_list; do
|
||||||
install $app
|
install $app
|
||||||
@ -118,7 +115,7 @@ done
|
|||||||
|
|
||||||
printf "\nDone."
|
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
|
||||||
|
Reference in New Issue
Block a user