Skip to content

Instantly share code, notes, and snippets.

@cwoodcox
Created November 29, 2011 20:21
Show Gist options
  • Save cwoodcox/1406301 to your computer and use it in GitHub Desktop.
Save cwoodcox/1406301 to your computer and use it in GitHub Desktop.
Make a keyboard shortcut to run a shell script with Alfred or Quicksilver, and point it at
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
@xunker
Copy link

xunker commented Nov 29, 2011

You can do something similar with the screensaver, too, if you have your screensaver set to require a password:

/System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment