diff options
Diffstat (limited to 'backup')
-rwxr-xr-x | backup | 66 |
1 files changed, 0 insertions, 66 deletions
@@ -1,66 +0,0 @@ -#!/usr/bin/env bash - -printf "\033[0;31m" -if [ -z "$HOME" ] || ! [ -x "$(command -v pacman)" ]; then - echo "Something went wrong!" - printf "\033[0m" - exit 1 -fi - -printf "\033[0;34m" - -echo "Cleaning previous configs" -rm -rf .config/ .local/ .repos/ .scripts/ .boilerplates/ .etc/ -mkdir -p .config/{dunst,qutebrowser,gtk-2.0,gtk-3.0,nvim,zathura,mpv,spicetify}/ .local/share/ .etc/X11/xorg.conf.d/ .repos/ - -echo "Copying configs" - -# Scripts -cp -r "$HOME"/.scripts/ . - -# Configs -cp "$HOME"/.config/dunst/dunstrc .config/dunst/ -cp "$HOME"/.config/qutebrowser/{config.py,user.css} .config/qutebrowser/ -cp "$HOME"/.config/gtk-2.0/* .config/gtk-2.0/ -cp "$HOME"/.config/gtk-3.0/* .config/gtk-3.0/ -cp "$HOME"/.config/nvim/init.vim .config/nvim/ -cp "$HOME"/.config/zathura/zathurarc .config/zathura/ -cp "$HOME"/.config/mpv/mpv.conf .config/mpv/ -cp "$HOME"/.config/uncrustify.cfg "$HOME"/.config/mimeapps.list .config/ -cp -r "$HOME"/.config/spicetify/{config.ini,Themes/} .config/spicetify/ -cp -r "$HOME"/.local/share/applications/ .local/share/ - -# Root configs -cp /etc/logid.cfg .etc/ -cp /etc/X11/xorg.conf.d/* .etc/X11/xorg.conf.d/ - -# Inits -cp "$HOME"/.bash_profile "$HOME"/.bashrc "$HOME"/.xinitrc "$HOME"/.Xresources "$HOME"/.gitconfig . -cp -r "$HOME"/.lein . - -# Boilerplates -cp -r "$HOME"/.boilerplates . - -# Crypto keys etc. -printf "\033[0;34m" -echo "Uploading keys" -scp -rq "$HOME"/.crypto/ root@10.0.0.33:/mnt/ssd/ - -# Repos -echo "Cleaning suckless configs" -cp -r "$HOME"/.repos/* .repos/ -find .repos/ -type d -name ".git" -exec rm -rf {} + -find .repos/ -type f -name ".gitignore" -exec rm -f {} + -find .repos/ -type f -exec sh -c "file -i '{}' | grep -q 'charset=binary'" \; -delete - -# Installed programs -printf "\033[0;34m" -echo "Getting package list" -pacman -Qqe >packages.txt - -printf "\033[0;34m" -printf "\nChanged files:\n" -printf "\033[0;32m" -git status -s | cut -c4- - -printf "\033[0m" |