From a025275e0cfc3cf55ca3523fa6d730eaf58f4e60 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 25 Oct 2024 01:49:58 +0200 Subject: Update --- gitconfig | 16 ++++++++++++++++ shenanigans.sh | 17 +++++++---------- symlink.sh | 1 + 3 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 gitconfig diff --git a/gitconfig b/gitconfig new file mode 100644 index 0000000..060e7b3 --- /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 545fc75..795c2d2 100755 --- a/shenanigans.sh +++ b/shenanigans.sh @@ -76,18 +76,13 @@ backup() { 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 @@ backup() { # 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 @@ togglesink() { 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 5900937..d31d7cd 100644 --- a/symlink.sh +++ b/symlink.sh @@ -9,6 +9,7 @@ mkdir -p ~/.newsboat 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 -- cgit v1.2.3