aboutsummaryrefslogtreecommitdiff
path: root/backup
diff options
context:
space:
mode:
authorMarvin Borner2022-05-31 14:17:19 +0200
committerMarvin Borner2022-05-31 14:17:19 +0200
commitb8be82d9113dd0fec9021aa573039cc64dbd849a (patch)
tree0694d21e5ba03e843dc6f03d1c5b1ed033123875 /backup
parent272cc6e941d798d7270fcf74a98f592ef06e14ac (diff)
Clean
Diffstat (limited to 'backup')
-rwxr-xr-xbackup66
1 files changed, 0 insertions, 66 deletions
diff --git a/backup b/backup
deleted file mode 100755
index eacec5a..0000000
--- a/backup
+++ /dev/null
@@ -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"