Lock screen on osx with screensaver
This is mainly for myself because I search that snipped every time I set up a mac. I place it to /usr/local/bin/lock and then type lock in my shell (or LaunchBar) to fire the screensaver and lock the screen (locking needs to be turned on in the preferences).
#!/bin/bash SCRS=`ps xcopid,command|grep ScreenSaverEng|cut -b1-5` if [ -z "$SCRS" ]; then /System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine fi
To safe some energy I don't use the screensaver but let blank the screen after a while.
Comments
No new comments allowed (anymore) on this post.