From 257f900c5525b7aa297c0d41f32ddf903c05ebb6 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 3 Sep 2020 14:49:30 +0200 Subject: [PATCH] feat: update `arch_setup` --- .local/bin/arch_setup | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/.local/bin/arch_setup b/.local/bin/arch_setup index 30eaaca..e617ad6 100755 --- a/.local/bin/arch_setup +++ b/.local/bin/arch_setup @@ -11,17 +11,17 @@ #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" -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" -fonts_list="fira adobe-source-han-sans-jp-fonts adobe-source-han-sans-cn" +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 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" 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" build_list="st dwm dmenu slock" -services_list="netctl-auto@wlp4s0 systemd-timescyncd" +services_list="systemd-timescyncd" git_clone() { @@ -29,10 +29,8 @@ git_clone() { printf "\n$1 downloaded!" cd ~/$1 git remote set-url origin git@gitlab.com:swy7ch/$1 - if [ "dotfiles" != $1 ] - git remote add upstream git://git.suckless.org/$1 - printf "\n$1 setup complete!" - fi + git remote add upstream git://git.suckless.org/$1 + printf "\n$1 setup complete!" cd } @@ -43,16 +41,16 @@ build() { } install() { - read -p "Installing $APP? (y/N)" validation + read -p "\nInstalling $app? (y/N)" validation if [ $validation = "y" ]; then - yay -S $APP + yay -S $app else - printf "\nSkipping $APP" + printf "\nSkipping $app" fi } 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 -# We need git git clone https://aur.archlinux.org/yay.git cd yay @@ -78,7 +75,7 @@ printf "\nLet's get the other apps" # Installing apps -printf "\nInstalling base" +printf "\nInstalling base\n" for app in $base_list; do install $app @@ -86,7 +83,7 @@ done printf "\nDone." -printf "\nInstalling utilitaries" +printf "\nInstalling utilitaries\n" for app in $utilities_list; do install $app @@ -94,7 +91,7 @@ done printf "\nDone." -printf "\nInstalling fonts" +printf "\nInstalling fonts\n" for app in $fonts_list; do install $app @@ -102,7 +99,7 @@ done printf "\nDone." -printf "\nInstalling media apps" +printf "\nInstalling media apps\n" for app in $media_list; do install $app @@ -110,7 +107,7 @@ done printf "\nDone." -printf "\nInstalling other apps" +printf "\nInstalling other apps\n" for app in $other_list; do install $app @@ -118,7 +115,7 @@ done printf "\nDone." -printf "\nInstalling vim-plug" +printf "\nInstalling vim-plug\n" curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim