Created
November 14, 2017 22:44
-
-
Save daniellivingston/251aa638ee5018157c57860e82fa0e77 to your computer and use it in GitHub Desktop.
Activate screensaver from macOS terminal
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
# Activate screensaver from macOS terminal | |
# Add to ~/.bash_profile | |
lock() { | |
open -a /System/Library/Frameworks/Screensaver.framework/Versions/A/Resources/ScreenSaverEngine.app | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment