#!/bin/sh MAGIC_NUMBER=107374183 PMSET=/usr/bin/pmset GREP=/usr/bin/grep AWK=/usr/bin/awk SLEEP=/bin/sleep $PMSET force -a displaysleep $MAGIC_NUMBER $SLEEP 1 $PMSET force -a displaysleep `$PMSET -g | $GREP displaysleep | $AWK '{print $2}'` $SLEEP 1
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
power off the displays (See related posts)
Comments on this post
You need to create an account or log in to post comments to this site.
Related Posts
» repair disk permissions from... in shell osx cli terminal
» check for file collisions wh... in shell osx cli terminal
» Boot in verbose mode in shell osx cli terminal
» Lock the keychain when idle in shell osx cli terminal
» Create an ecrypted sparse di... in shell osx cli terminal
» /etc/sysctl.conf in shell osx cli terminal
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails