gorn.ch

Tobias Ebnöther's personal blog

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.

Related Entries:
NetNewsWire Lite vs Vienna memory usage
Living with Terminal.app
Fixing the delete key in Terminal.app
Nice screenrc and common keystokes
tail -f to growl
 Permalink

Comments

No new comments allowed (anymore) on this post.
Powered by Flux CMS