Advertisement
nighthoodie

dark

May 2nd, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. #!/bin/bash
  2. # turn display dark
  3.  
  4. #osascript="/usr/bin/osascript"
  5. #osascript -e 'tell application "System Events" to repeat 50 times' -e 'key code 107' -e 'delay 0.1' -e 'end repeati'
  6.  
  7. # osascript method depricated - brightness works better/faster
  8. # port install brightness ;-)
  9.  
  10. brightness="/opt/local/bin/brightness"
  11.  
  12. brightness 0
  13.  
  14. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement