Better xlock2 command
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 19 Jul 2010 06:10:38 +0000 (23:10 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 19 Jul 2010 06:10:38 +0000 (23:10 -0700)
.bashrc

diff --git a/.bashrc b/.bashrc
index 0f1c4e7..b068fca 100644 (file)
--- 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