Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sickcodes/6c484391aa68624e293e7efe34c97ee1 to your computer and use it in GitHub Desktop.
Save sickcodes/6c484391aa68624e293e7efe34c97ee1 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadDisplayName</key>
<string>Security &amp; Privacy</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
<string>com.__YOUR_NAME__.config.screensaver</string>
<key>PayloadType</key>
<string>com.apple.screensaver</string>
<key>PayloadUUID</key>
<string>966eb7be-81bd-f8cc-f3e3-078d93f1b4a4</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>askForPassword</key>
<false/>
</dict>
<dict>
<key>PayloadDisplayName</key>
<string>Security &amp; Privacy</string>
<key>PayloadEnabled</key>
<true/>
<key>PayloadIdentifier</key>
<string>com.__YOUR_NAME__.config.screensaver</string>
<key>PayloadType</key>
<string>com.apple.screensaver</string>
<key>PayloadUUID</key>
<string>966eb7be-81bd-f8cc-f3e3-078d93f1b4a5</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>askForPasswordDelay</key>
<integer>5270400</integer>
</dict>
</array>
<key>PayloadDescription</key>
<string>screen saver password delay settings</string>
<key>PayloadDisplayName</key>
<string>screen saver password delay</string>
<key>PayloadIdentifier</key>
<string>com.__YOUR_NAME__.config.screensaver</string>
<key>PayloadOrganization</key>
<string>__YOUR_NAME__</string>
<key>PayloadRemovalDisallowed</key>
<false/>
<key>PayloadScope</key>
<string>System</string>
<key>PayloadType</key>
<string>Configuration</string>
<key>PayloadUUID</key>
<string>0dc319a0-c331-0131-eeb5-000c294ab81b</string>
<key>PayloadVersion</key>
<integer>1</integer>
</dict>
</plist>
#!/bin/bash
/usr/bin/profiles -I -F askforpassworddelay.mobileconfig \
|| open /System/Library/PreferencePanes/Profiles.prefPane askforpassworddelay.mobileconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment