Created
April 19, 2013 16:04
-
-
Save justintime/5421341 to your computer and use it in GitHub Desktop.
Force screensaver lock on a Mac
This file contains 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
#!/bin/bash | |
rm ~/Library/Preferences/com.apple.screensaver.plist | |
/usr/libexec/PlistBuddy -c "Add :askForPassword integer 1" ~/Library/Preferences/com.apple.screensaver.plist | |
/usr/libexec/PlistBuddy -c "Add :askForPasswordDelay integer 60" ~/Library/Preferences/com.apple.screensaver.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment