aboutsummaryrefslogtreecommitdiff
path: root/shenanigans.sh
diff options
context:
space:
mode:
Diffstat (limited to 'shenanigans.sh')
-rwxr-xr-xshenanigans.sh17
1 files changed, 7 insertions, 10 deletions
diff --git a/shenanigans.sh b/shenanigans.sh
index 545fc75..795c2d2 100755
--- a/shenanigans.sh
+++ b/shenanigans.sh
@@ -76,18 +76,13 @@ backup() {
76 cd $VHOME/dotfiles 76 cd $VHOME/dotfiles
77 77
78 # Make a copy of certain files. 78 # Make a copy of certain files.
79 cp /home/$USER/.shenanigans.sh shenanigans.sh 79 rsync -azv /home/$USER/.bash_history_infinite bash_history_infinite
80 cp /home/$USER/.bash_history_infinite bash_history_infinite 80 rsync -azv /home/$USER/.ssh/ ssh
81 cp /home/$USER/.gitconfig gitconfig 81 rsync -azv /home/$USER/.aws/ aws
82 82 rsync -azv /home/$USER/.gnupg/ gnupg/
83 cp -Rf /home/$USER/.ssh/ ./
84 cp -Rf /home/$USER/.aws/ ./
85
86 find /home/$USER/Videos -type f -name "*.webm" -exec cp -n {} $VHOME/videos/ \;
87 find /home/$USER/Pictures -type f -name "*.png" -exec cp -n {} $VHOME/pictures/ \;
88 83
89 # Sync with NAS. 84 # Sync with NAS.
90 rsync -azv \ 85 rsync -azvpog \
91 --exclude '.venv/' \ 86 --exclude '.venv/' \
92 --exclude '.git/' \ 87 --exclude '.git/' \
93 --exclude '.import/' \ 88 --exclude '.import/' \
@@ -100,6 +95,7 @@ backup() {
100 95
101 # Add to log file. 96 # Add to log file.
102 echo `date +"%D %T"` >> ~/.vault.log 97 echo `date +"%D %T"` >> ~/.vault.log
98 notify-send "Backup finished successfully."
103 99
104 # Return back to original directory 100 # Return back to original directory
105 cd $CWD 101 cd $CWD
@@ -200,5 +196,6 @@ togglesink() {
200 fi 196 fi
201 197
202 pactl set-default-sink "${sinks[$next_index]}" 198 pactl set-default-sink "${sinks[$next_index]}"
199 notify-send "Switched to sink: ${sinks[$next_index]}"
203} 200}
204 201