Added a dotfile managing script, greatly customized my i3lock with a python script

This commit is contained in:
TuDatTr
2017-12-21 00:25:55 +01:00
parent 2715d63e53
commit d42ae07b8f
2 changed files with 181 additions and 18 deletions

48
.scripts/dotfiles.sh Executable file
View File

@@ -0,0 +1,48 @@
#!/bin/bash
# A script to manage my dotfiles and copy them to my git
dotfiles=$HOME/workspace/Git/dotfiles
copy(){
rsync -avv $HOME/$1 $dotfiles/$1
}
copy_test(){
echo rsync -a $HOME/$1 $dotfiles/$1
}
# i3 gaps
# Powerline fonts must be installed
printf "\nCopying i3 configs...\n"
copy .config/i3/
# Termite
printf "\nCopying Termite configs...\n"
copy .config/termite/
# Git
printf "\nCopying Git configs...\n"
copy .gitignore
copy .gitconfig
# Scripts
printf "\nCopying Scripts...\n"
copy .scripts/
# zsh
printf "\nCopying zsh configs...\n"
copy .zshrc
# Emacs
# printf "For Emacs (with elpy) following python modules are needed: jedi rope importmagic autopep8 yapf flake8"
# printf "You must also add '~/.local/bin' to your path."
printf "\nCopying emacs configs...\n"
copy .emacs
copy .emacs.d/