diff --git a/gitconfig b/gitconfig new file mode 100644 index 0000000000000000000000000000000000000000..060e7b3da41ebc84aff593171c77489e4f788b6c --- /dev/null +++ b/gitconfig @@ -0,0 +1,16 @@ +[user] + name = Mitja Felicijan + email = mitja.felicijan@gmail.com + signingkey = mitja.felicijan@gmail.com +[core] + editor = vim +[commit] + gpgsign = true +[tag] + gpgsign = true +[alias] + pushall = !sh -c \"git remote | xargs -L1 git push --all\" +[init] + defaultBranch = master +[pull] + rebase = true diff --git a/shenanigans.sh b/shenanigans.sh index 545fc75abdcb5e984d93150654a4afe8b1211a3c..795c2d2ed16b26d3d839c98c0825da8eef465d00 100755 --- a/shenanigans.sh +++ b/shenanigans.sh @@ -76,18 +76,13 @@ mkdir -p $VHOME/dotfiles cd $VHOME/dotfiles # Make a copy of certain files. - cp /home/$USER/.shenanigans.sh shenanigans.sh - cp /home/$USER/.bash_history_infinite bash_history_infinite - cp /home/$USER/.gitconfig gitconfig - - cp -Rf /home/$USER/.ssh/ ./ - cp -Rf /home/$USER/.aws/ ./ - - find /home/$USER/Videos -type f -name "*.webm" -exec cp -n {} $VHOME/videos/ \; - find /home/$USER/Pictures -type f -name "*.png" -exec cp -n {} $VHOME/pictures/ \; + rsync -azv /home/$USER/.bash_history_infinite bash_history_infinite + rsync -azv /home/$USER/.ssh/ ssh + rsync -azv /home/$USER/.aws/ aws + rsync -azv /home/$USER/.gnupg/ gnupg/ # Sync with NAS. - rsync -azv \ + rsync -azvpog \ --exclude '.venv/' \ --exclude '.git/' \ --exclude '.import/' \ @@ -100,6 +95,7 @@ $VHOME/ /media/Void/Backup/$ME/ # Add to log file. echo `date +"%D %T"` >> ~/.vault.log + notify-send "Backup finished successfully." # Return back to original directory cd $CWD @@ -200,5 +196,6 @@ next_index=$(( (current_index + 1) % ${#sinks[@]} )) fi pactl set-default-sink "${sinks[$next_index]}" + notify-send "Switched to sink: ${sinks[$next_index]}" } diff --git a/symlink.sh b/symlink.sh index 5900937496d97cf50d72705a67eba1e132a62aec..d31d7cd53ed05aa6f5e9609d9a5a634dd34ae8e5 100644 --- a/symlink.sh +++ b/symlink.sh @@ -9,6 +9,7 @@ ln -s ~/.dotfiles/shenanigans.sh ~/.shenanigans.sh ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf ln -s ~/.dotfiles/vimrc ~/.vimrc +ln -s ~/.dotfiles/gitconfig ~/.gitconfig ln -s ~/.dotfiles/i3config ~/.config/i3/config ln -s ~/.dotfiles/i3status ~/.config/i3status/config ln -s ~/.dotfiles/rssfeeds ~/.newsboat/urls