Filename: i3ExecAlways
#!/bin/bash
# double fork to avoid zombies
# see http://charlesweldonwitt.blogspot.com/2015/08/double-fork-to-avoid-zombies.html
# autokey for some automation stuff
(( sleep 3 && pgrep -f autokey || autokey 0<&- &>/dev/null &) &)
# nm-applet for wifi, ethernet, vpn
(( sleep 20 && pgrep -f 'nm-applet' || sudo /usr/bin/nm-applet 0<&- &>/dev/null &) &)
# duplicati does versioned backups
(( sleep 3 && pgrep -f duplicati || ~/bin/duplicati.sh 0<&- &>/dev/null &) &)
# insync syncs with Google Drive (most recent version only) - hence duplicati for versioning of some things
# insync notify applet seems to disappear upon i3wm restart, so always quit / pkill it and start it again
(( sleep 5;insync quit;sleep 10;pkill -f insync;insync start 0<&- &>/dev/null &) &)
#
No comments:
Post a Comment
This is Charles Weldon Witt. Thank you for commenting on my blog.