From: Colin Patrick McCabe Date: Mon, 19 Jul 2010 06:10:38 +0000 (-0700) Subject: Better xlock2 command X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6a5403c8033614c6053e76dfa7705886eb5dd4d;p=cmccabe-etc Better xlock2 command --- diff --git a/.bashrc b/.bashrc index 0f1c4e7..b068fca 100644 --- a/.bashrc +++ b/.bashrc @@ -15,7 +15,9 @@ xlock2() { echo "starting xscreensaver..." xscreensaver & fi - xscreensaver-command -lock + until xscreensaver-command -lock; do + sleep 1 + done } case $- in