diff options
| -rw-r--r-- | gitconfig | 16 | ||||
| -rwxr-xr-x | shenanigans.sh | 17 | ||||
| -rw-r--r-- | symlink.sh | 1 |
3 files changed, 24 insertions, 10 deletions
diff --git a/gitconfig b/gitconfig new file mode 100644 index 0000000..060e7b3 --- /dev/null +++ b/gitconfig | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | [user] | ||
| 2 | name = Mitja Felicijan | ||
| 3 | email = mitja.felicijan@gmail.com | ||
| 4 | signingkey = mitja.felicijan@gmail.com | ||
| 5 | [core] | ||
| 6 | editor = vim | ||
| 7 | [commit] | ||
| 8 | gpgsign = true | ||
| 9 | [tag] | ||
| 10 | gpgsign = true | ||
| 11 | [alias] | ||
| 12 | pushall = !sh -c \"git remote | xargs -L1 git push --all\" | ||
| 13 | [init] | ||
| 14 | defaultBranch = master | ||
| 15 | [pull] | ||
| 16 | rebase = true | ||
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 | ||
| @@ -9,6 +9,7 @@ mkdir -p ~/.newsboat | |||
| 9 | ln -s ~/.dotfiles/shenanigans.sh ~/.shenanigans.sh | 9 | ln -s ~/.dotfiles/shenanigans.sh ~/.shenanigans.sh |
| 10 | ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf | 10 | ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf |
| 11 | ln -s ~/.dotfiles/vimrc ~/.vimrc | 11 | ln -s ~/.dotfiles/vimrc ~/.vimrc |
| 12 | ln -s ~/.dotfiles/gitconfig ~/.gitconfig | ||
| 12 | ln -s ~/.dotfiles/i3config ~/.config/i3/config | 13 | ln -s ~/.dotfiles/i3config ~/.config/i3/config |
| 13 | ln -s ~/.dotfiles/i3status ~/.config/i3status/config | 14 | ln -s ~/.dotfiles/i3status ~/.config/i3status/config |
| 14 | ln -s ~/.dotfiles/rssfeeds ~/.newsboat/urls | 15 | ln -s ~/.dotfiles/rssfeeds ~/.newsboat/urls |
