From 9363b71ece991957ed46d577d2cffb384a6b4b42 Mon Sep 17 00:00:00 2001 From: Marcel Bischoff Date: Wed, 30 Dec 2015 22:59:39 +0100 Subject: [PATCH] Add Screensaver Immediate Lock --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 8861f93..0593184 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 Immediate Lock +```bash +# Status +defaults read com.apple.screensaver askForPasswordDelay + +# Enable (Default) +defaults write com.apple.screensaver askForPasswordDelay -int 0 + +# Disable (Integer = lock delay in seconds) +defaults write com.apple.screensaver askForPasswordDelay -int 10 +``` + #### Screensaver Password ```bash # Status