Last active
December 19, 2015 03:48
-
-
Save aldoridhoni/5892244 to your computer and use it in GitHub Desktop.
Sleep and Lock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Lock current screen from command line | |
# | |
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Sleep Mac from command line using pmset | |
# | |
pmset sleepnow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment