awesome_configs/install.sh

11 lines
562 B
Bash
Raw Normal View History

2021-08-09 02:36:27 +00:00
#!/usr/bin/env bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
2021-08-09 03:03:00 +00:00
CACHE_DIR="/tmp/surferlul_awesome"
[ -d "$CACHE_DIR" ] && rm -rf /tmp/surferlul_awesome
mkdir $CACHE_DIR
git clone https://github.com/Surferlul/awesome.git $CACHE_DIR
[ -d "$HOME/.config/awesome" ] && tar cf $CACHE_DIR/previous.tar $HOME/.config/awesome/ && rm -rf $HOME/.config/awesome/
git clone https://github.com/vicious-widgets/vicious.git $CACHE_DIR/vicious
mv $CACHE_DIR $HOME/.config/awesome
[ "$1" != "--preserve-git" ] && rm -rf $HOME/.config/awesome/.git