Skip to content

Instantly share code, notes, and snippets.

@mrinalwadhwa
Created August 3, 2016 17:30
Show Gist options
  • Save mrinalwadhwa/a316bd772f6075485109930ec472f035 to your computer and use it in GitHub Desktop.
Save mrinalwadhwa/a316bd772f6075485109930ec472f035 to your computer and use it in GitHub Desktop.
Lock Screen on MacOS
#!/usr/bin/env bash
##
## Usage: afk
## Lock Screen on MacOS
##
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment