awesomeconf/bin/syncawesome
File Type: text/x-shellscript
#!/bin/bash
RSYNC_SOURCE="$HOME/Projects/awesomeconf/"
RSYNC_DEST="$HOME/.config/awesome/"
cp -rf "$RSYNC_DEST" "$RSYNC_DEST../awesome.backup"
rsync -czrt --delete "$RSYNC_SOURCE" "$RSYNC_DEST"
ps x -u $USER -U $USER | grep -v grep | grep awesome > /dev/null && { echo 'awesome.restart()' | awesome-client ; }