From 9d35d95205d6c0d3c058fcf3e2402d21b7777356 Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Wed, 30 Dec 2015 22:56:32 +0100 Subject: [PATCH] Add Screensaver Password --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 79c3333..8861f93 100644 --- a/README.md +++ b/README.md @@ -984,6 +984,18 @@ open /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/Scree /System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend ``` +#### Screensaver Password +```bash +# Status +defaults read com.apple.screensaver askForPassword + +# Enable +defaults write com.apple.screensaver askForPassword -int 1 + +# Disable (Default) +defaults write com.apple.screensaver askForPassword -int 0 +``` + ### Wiping Data #### Securely Remove File