Skip to content

Instantly share code, notes, and snippets.

View daniellivingston's full-sized avatar

Daniel Livingston daniellivingston

  • Westford, MA
View GitHub Profile
@daniellivingston
daniellivingston / lock.sh
Created November 14, 2017 22:44
Activate screensaver from macOS terminal
# Activate screensaver from macOS terminal
# Add to ~/.bash_profile
lock() {
open -a /System/Library/Frameworks/Screensaver.framework/Versions/A/Resources/ScreenSaverEngine.app
}