-
Notifications
You must be signed in to change notification settings - Fork 2
/
Backup.sh
executable file
·76 lines (58 loc) · 3.89 KB
/
Backup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/usr/bin/env bash
echo "▀█████████▄ ▄████████ ▄████████ ▄█ ▄█▄ ███ █▄ ▄███████▄ ";
echo " ███ ███ ███ ███ ███ ███ ███ ▄███▀ ███ ███ ███ ███ ";
echo " ███ ███ ███ ███ ███ █▀ ███▐██▀ ███ ███ ███ ███ ";
echo " ▄███▄▄▄██▀ ███ ███ ███ ▄█████▀ ███ ███ ███ ███ ";
echo "▀▀███▀▀▀██▄ ▀███████████ ███ ▀▀█████▄ ███ ███ ▀█████████▀ ";
echo " ███ ██▄ ███ ███ ███ █▄ ███▐██▄ ███ ███ ███ ";
echo " ███ ███ ███ ███ ███ ███ ███ ▀███▄ ███ ███ ███ ";
echo "▄█████████▀ ███ █▀ ████████▀ ███ ▀█▀ ████████▀ ▄████▀ ";
echo " ▀ ";
echo " ▄▄▄▄███▄▄▄▄ ▄████████ ▄█ ▄█▄ ▄████████ ▄████████ ";
echo " ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ▄███▀ ███ ███ ███ ███ ";
echo " ███ ███ ███ ███ ███ ███▐██▀ ███ █▀ ███ ███ ";
echo " ███ ███ ███ ███ ███ ▄█████▀ ▄███▄▄▄ ▄███▄▄▄▄██▀ ";
echo " ███ ███ ███ ▀███████████ ▀▀█████▄ ▀▀███▀▀▀ ▀▀███▀▀▀▀▀ ";
echo " ███ ███ ███ ███ ███ ███▐██▄ ███ █▄ ▀███████████ ";
echo " ███ ███ ███ ███ ███ ███ ▀███▄ ███ ███ ███ ███ ";
echo " ▀█ ███ █▀ ███ █▀ ███ ▀█▀ ██████████ ███ ███ ";
echo " ▀ ███ ███ ";
echo " ~ Memorias de un informatico ~ ";
echo " MY UNIX WET DREAM ";
echo "Creating Backup Files..."
# Copy i3 config to folder
sudo cp -r ~/.config/i3/ $PWD
# Copy .bashrc to folder
sudo cp ~/.bashrc $PWD/bashrc
# Copy scripts folder
sudo cp -r ~/scripts $PWD
# Copy ascii fonts
sudo cp -r /usr/share/figlet $PWD
# Copy emacs folder
#sudo cp -r ~/.emacs.d $PWD
#sudo rm -rf emacs
#sudo mv -f .emacs.d/ emacs
# Copy firefox
sudo cp -r ~/.mozilla/firefox/pnclkesu.default/chrome/ firefox/
# Copy rofi
sudo cp -r /usr/share/rofi/themes rofi/
# htop
sudo cp ~/.config/htop/htoprc htop/
# hexchat
sudo cp ~/.config/hexchat/colors.conf hexchat/
sudo cp ~/.config/hexchat/[Content_Types].xml hexchat/
sudo cp ~/.config/hexchat/pevents.conf hexchat/
# lxappearance
# Adwaita-dark theme
# Scrollbar change in ubuntu
sudo cp /usr/share/themes/Ambiance/gtk-2.0/gtkrc gtkrc
# polybar
sudo cp -r ~/.config/polybar/ polybar
printf "\nBackup Done\n"
read -p "want to upload to github? (Y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1
cd ~/desktop/Dotfiles-WIP/
git init
git add .
git commit -m "$1"
git push
echo "Done";