Added i3/sleep.sh

This commit is contained in:
Austen Adler 2014-08-19 12:58:19 -06:00
parent 5dcaffc2c0
commit 6a7270c79d
2 changed files with 9 additions and 2 deletions

2
i3/sleep.sh Executable file
View File

@ -0,0 +1,2 @@
i3lock -i ~/.i3/wall.png
sudo pm-suspend

View File

@ -59,18 +59,23 @@ while getopts ":hbsdtclw" VALUE "$@"; do
if [ "$VALUE" = "c" ] ; then
echo "Syncing config files"
if which trash >/dev/null; then
trash ~/.gitconfig ~/.vimrc ~/.vimperatorrc ~/.bashrc ~/.pylintrc ~/.zshrc ~/.i3/config
trash ~/.gitconfig ~/.vimrc ~/.vimperatorrc ~/.vimperator/colors/vimPgray.vimp ~/.vimperator/info/sync/quickmarks ~/.bashrc ~/.pylintrc ~/.zshrc ~/.i3/config ~/.i3/sleep.sh
else
rm ~/.gitconfig ~/.vimrc ~/.vimperatorrc ~/.bashrc ~/.pylintrc ~/.zshrc ~/.i3/config
rm ~/.gitconfig ~/.vimrc ~/.vimperatorrc ~/.vimperator/colors/vimPgray.vimp ~/.vimperator/info/sync/quickmarks ~/.bashrc ~/.pylintrc ~/.zshrc ~/.i3/config ~/.i3/sleep.sh
fi
ln -s ${PWD}/../python/pylintrc ~/.pylintrc
ln -s ${PWD}/../vim/vimrc ~/.vimrc
ln -s ${PWD}/../vimperator/vimperatorrc ~/.vimperatorrc
mkdir -p ~/.vimperator/colors
ln -s ${PWD}/../vimperator/vimPgray.vimp ~/.vimperator/colors/vimPgray.vimp
mkdir -p ~/.vimperator/info/sync/quickmarks
ln -s ${PWD}/../vimperator/quickmarks ~/.vimperator/info/sync/quickmarks
ln -s ${PWD}/../git/gitconfig ~/.gitconfig
ln -s ${PWD}/../shells/bashrc ~/.bashrc
ln -s ${PWD}/../shells/zshrc ~/.zshrc
mkdir -p ~/.i3
ln -s ${PWD}/../i3/i3config ~/.i3/config
ln -s ${PWD}/../i3/sleep.sh ~/.i3/sleep.sh
fi
if [ "$VALUE" = "l" ] ; then
echo "Linking standard directories..."