2017-10-07 22:09:18 +00:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
|
2017-10-09 05:02:09 +00:00
|
|
|
|
blue() { printf "\n\033[0;34m $* \033[0m\n\n" && (echo $* >> /tmp/LARBS.log) ;}
|
|
|
|
|
red() { printf "\n\033[0;31m $* \033[0m\n\n" && (echo ERROR: $* >> /tmp/LARBS.log) ;}
|
2017-10-07 22:09:18 +00:00
|
|
|
|
|
2017-10-08 23:53:40 +00:00
|
|
|
|
NAME=$(whoami)
|
2017-10-07 22:09:18 +00:00
|
|
|
|
|
|
|
|
|
blue Activating Pulseaudio if not already active...
|
|
|
|
|
pulseaudio --start && blue Pulseaudio enabled...
|
|
|
|
|
|
|
|
|
|
#Install an AUR package manually.
|
|
|
|
|
aurinstall() { curl -O https://aur.archlinux.org/cgit/aur.git/snapshot/$1.tar.gz && tar -xvf $1.tar.gz && cd $1 && makepkg --noconfirm -si && cd .. && rm -rf $1 $1.tar.gz ;}
|
|
|
|
|
|
|
|
|
|
#aurcheck runs on each of its arguments, if the argument is not already installed, it either uses packer to install it, or installs it manually.
|
|
|
|
|
aurcheck() {
|
|
|
|
|
qm=$(pacman -Qm | awk '{print $1}')
|
|
|
|
|
for arg in "$@"
|
|
|
|
|
do
|
|
|
|
|
if [[ $qm = *"$arg"* ]]; then
|
|
|
|
|
echo $arg is already installed.
|
2018-01-18 06:21:52 +00:00
|
|
|
|
else
|
2017-10-07 22:09:18 +00:00
|
|
|
|
echo $arg not installed
|
|
|
|
|
blue Now installing $arg...
|
|
|
|
|
if [[ -e /usr/bin/packer ]]
|
|
|
|
|
then
|
2017-10-09 18:52:09 +00:00
|
|
|
|
(packer --noconfirm -S $arg && blue $arg now installed) || red Error installing $arg.
|
2017-10-07 22:09:18 +00:00
|
|
|
|
else
|
|
|
|
|
(aurinstall $arg && blue $arg now installed) || red Error installing $arg.
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-22 21:56:51 +00:00
|
|
|
|
blue "Adjusting config files for your internet interfaces..."
|
|
|
|
|
wifi=$(ls /sys/class/net | grep wl)
|
|
|
|
|
eth=$(ls /sys/class/net | grep eth)
|
|
|
|
|
sed -e "s/wlp3s0/$wifi/g; s/enp0s25/$eth/g" /home/$NAME/.config/polybar/config /home/$NAME/.bashrc
|
2017-10-07 22:09:18 +00:00
|
|
|
|
|
|
|
|
|
blue Installing AUR programs...
|
|
|
|
|
blue \(This may take some time.\)
|
|
|
|
|
|
2017-10-09 18:43:41 +00:00
|
|
|
|
cat << "EOF"
|
2018-01-18 06:21:52 +00:00
|
|
|
|
[0;1;33;93mm[0;1;32;92mm[0m [0;1;34;94mm[0m [0;1;31;91mm[0m [0;1;33;93mm[0;1;32;92mmm[0;1;36;96mmm[0m [0;1;32;92mmm[0;1;36;96mmm[0;1;34;94mmm[0;1;35;95mm[0m [0;1;31;91mmm[0;1;33;93mmm[0;1;32;92mm[0m [0;1;36;96mm[0m [0;1;31;91mm[0m [0;1;33;93mmm[0;1;32;92mmm[0;1;36;96mmm[0m [0;1;35;95mm[0m
|
|
|
|
|
[0;1;32;92m#[0;1;36;96m#[0m [0;1;35;95m#[0m [0;1;33;93m#[0m [0;1;32;92m#[0m [0;1;34;94m"[0;1;35;95m#[0m [0;1;34;94m#[0m [0;1;32;92m#[0m [0;1;34;94m#[0;1;35;95m#[0m [0;1;31;91m#[0;1;33;93m#[0m [0;1;32;92m#[0m [0;1;31;91m#[0m
|
|
|
|
|
[0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;31;91m#[0m [0;1;32;92m#[0m [0;1;36;96m#[0;1;34;94mmm[0;1;35;95mmm[0;1;31;91m"[0m [0;1;35;95m#[0m [0;1;36;96m#[0m [0;1;35;95m#[0m [0;1;31;91m#[0;1;33;93m#[0m [0;1;32;92m#[0m [0;1;36;96m#m[0;1;34;94mmm[0;1;35;95mmm[0m [0;1;33;93m#[0m
|
|
|
|
|
[0;1;34;94m#m[0;1;35;95mm#[0m [0;1;33;93m#[0m [0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;31;91m"[0;1;33;93mm[0m [0;1;31;91m#[0m [0;1;34;94m#[0m [0;1;31;91m#[0m [0;1;33;93m"[0;1;32;92m"[0m [0;1;36;96m#[0m [0;1;34;94m#[0m [0;1;32;92m"[0m
|
|
|
|
|
[0;1;34;94m#[0m [0;1;33;93m#[0m [0;1;32;92m"m[0;1;36;96mmm[0;1;34;94mm"[0m [0;1;35;95m#[0m [0;1;32;92m"[0m [0;1;33;93m#[0m [0;1;34;94mmm[0;1;35;95m#m[0;1;31;91mm[0m [0;1;33;93m#[0m [0;1;34;94m#[0m [0;1;35;95m#m[0;1;31;91mmm[0;1;33;93mmm[0m [0;1;36;96m#[0m
|
2017-10-09 18:43:41 +00:00
|
|
|
|
EOF
|
2018-01-18 06:21:52 +00:00
|
|
|
|
|
2018-01-22 21:56:51 +00:00
|
|
|
|
#gpg --recv-keys 5FAF0A6EE7371805 #Add the needed gpg key for neomutt
|
2017-10-07 22:09:18 +00:00
|
|
|
|
|
2018-01-23 15:43:26 +00:00
|
|
|
|
aurcheck packer i3-gaps siji-git vim-pathogen neomutt unclutter-xfixes-git polybar xfce-theme-blackbird htop-vim-git ncpamixer-git urlview sc-im || red Error with basic AUR installations...
|
2017-10-07 22:09:18 +00:00
|
|
|
|
#Also installing i3lock, since i3-gaps was only just now installed.
|
|
|
|
|
sudo pacman -S --noconfirm --needed i3lock
|
|
|
|
|
|
2017-10-09 01:36:59 +00:00
|
|
|
|
choices=$(cat /tmp/.choices)
|
2017-10-07 22:09:18 +00:00
|
|
|
|
for choice in $choices
|
|
|
|
|
do
|
|
|
|
|
case $choice in
|
|
|
|
|
1)
|
|
|
|
|
aurcheck vim-live-latex-preview
|
|
|
|
|
git clone https://github.com/lukesmithxyz/latex-templates.git && mkdir -p /home/$NAME/Documents/LaTeX && rsync -va latex-templates /home/$NAME/Documents/LaTeX && rm -rf latex-templates
|
|
|
|
|
;;
|
|
|
|
|
6)
|
|
|
|
|
aurcheck ttf-ancient-fonts
|
|
|
|
|
;;
|
|
|
|
|
7)
|
|
|
|
|
aurcheck transmission-remote-cli-git
|
|
|
|
|
;;
|
2017-10-09 02:55:02 +00:00
|
|
|
|
8)
|
2018-02-17 01:16:45 +00:00
|
|
|
|
aurcheck bash-pipes cli-visualizer speedometer neofetch screenkey
|
2017-10-09 02:55:02 +00:00
|
|
|
|
;;
|
2017-10-07 22:09:18 +00:00
|
|
|
|
esac
|
|
|
|
|
done
|
2017-10-09 17:31:21 +00:00
|
|
|
|
cat << "EOF"
|
2017-10-09 17:37:33 +00:00
|
|
|
|
|
2017-10-09 17:31:21 +00:00
|
|
|
|
▄ ▄
|
|
|
|
|
▌▒█ ▄▀▒▌
|
|
|
|
|
▌▒▒▀▄ ▄▀▒▒▒▐
|
|
|
|
|
▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
|
|
|
|
|
▄▄▀▒▒▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
|
|
|
|
|
▄▀▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀██▀▒▌
|
|
|
|
|
▐▒▒▒▄▄▄▒▒▒▒▒▒▒▒▒▒▒▒▒▀▄▒▒▌
|
|
|
|
|
▌▒▒▐▄█▀▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
|
|
|
|
|
▐▒▒▒▒▒▒▒▒▒▒▒▌██▀▒▒▒▒▒▒▒▒▀▄▌
|
|
|
|
|
▌▒▀▄██▄▒▒▒▒▒▒▒▒▒▒▒░░░░▒▒▒▒▌
|
|
|
|
|
▌▀▐▄█▄█▌▄▒▀▒▒▒▒▒▒░░░░░░▒▒▒▐
|
|
|
|
|
▐▒▀▐▀▐▀▒▒▄▄▒▄▒▒▒▒▒░░░░░░▒▒▒▒▌
|
|
|
|
|
▐▒▒▒▀▀▄▄▒▒▒▄▒▒▒▒▒▒░░░░░░▒▒▒▐
|
|
|
|
|
▌▒▒▒▒▒▒▀▀▀▒▒▒▒▒▒▒▒░░░░▒▒▒▒▌
|
|
|
|
|
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▐
|
|
|
|
|
▀▄▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▄▒▒▒▒▌
|
|
|
|
|
▀▄▒▒▒▒▒▒▒▒▒▒▄▄▄▀▒▒▒▒▄▀
|
|
|
|
|
▐▀▒▀▄▄▄▄▄▄▀▀▀▒▒▒▒▒▄▄▀
|
|
|
|
|
▐▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▀▀
|
2017-10-09 17:37:33 +00:00
|
|
|
|
|
2017-10-09 17:31:21 +00:00
|
|
|
|
EOF
|
|
|
|
|
|
2017-10-07 22:09:18 +00:00
|
|
|
|
blue Downloading config files...
|
2018-01-21 00:06:52 +00:00
|
|
|
|
git clone https://github.com/lukesmithxyz/voidrice.git && rsync -va voidrice/ /home/$NAME && rm -rf voidrice
|
2017-10-07 22:09:18 +00:00
|
|
|
|
|
2018-02-14 00:36:37 +00:00
|
|
|
|
blue Downloading email setup...
|
|
|
|
|
git clone https://github.com/lukesmithxyz/mutt-wizard.git /home/$NAME/.config/mutt
|
|
|
|
|
|
2018-01-22 21:56:51 +00:00
|
|
|
|
blue "Preparing welcome message..."
|
2018-01-21 00:06:52 +00:00
|
|
|
|
curl https://raw.githubusercontent.com/LukeSmithxyz/larbs/master/src/welcome_i3 >> /home/$NAME/.config/i3/config
|
2018-01-20 22:27:11 +00:00
|
|
|
|
|
2018-01-22 21:56:51 +00:00
|
|
|
|
blue "Generating bash/ranger/qutebrowser shortcuts..."
|
2018-01-20 17:17:32 +00:00
|
|
|
|
bash /home/$NAME/.config/Scripts/shortcuts.sh
|