LARBS/user.sh

24 lines
823 B
Bash
Raw Normal View History

2017-09-25 01:11:10 +00:00
#!/bin/bash
2017-10-06 18:06:37 +00:00
blue() { printf "\033[0;34m $* \033[0m\n" && (echo $* >> LARBS.log) ;}
red() { printf "\033[0;31m $* \033[0m\n" && (echo ERROR: $* >> LARBS.log) ;}
USER=$(cat .firstrun)
2017-10-06 04:59:38 +00:00
blue Changing directory to /home/$USER...
2017-10-06 18:06:37 +00:00
2017-09-25 01:11:10 +00:00
cd /home/$USER
2017-10-02 21:04:53 +00:00
error() { dialog --title "Error!" --msgbox "We've run into a fatal-ish error. Check the LARBS.log file for more information" 10 60 && clear && exit ;}
2017-10-06 04:59:38 +00:00
blue Activating Pulseaudio if not already active...
2017-10-06 18:06:37 +00:00
pulseaudio --start && blue Pulseaudio enabled...
2017-09-25 01:11:10 +00:00
curl -O http://lukesmith.xyz/larbs/aur_install.sh && bash aur_install.sh
rm aur_install.sh
2017-09-25 01:11:10 +00:00
2017-10-06 04:59:38 +00:00
blue Downloading config files...
2017-09-29 02:44:36 +00:00
git clone https://github.com/lukesmithxyz/voidrice.git && rsync -va voidrice/ /home/$USER && rm -rf voidrice
2017-10-06 04:59:38 +00:00
blue Generating bash/ranger/qutebrowser shortcuts...
2017-09-25 01:11:10 +00:00
python ~/.config/Scripts/shortcuts.py