Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # turn display dark
- #osascript="/usr/bin/osascript"
- #osascript -e 'tell application "System Events" to repeat 50 times' -e 'key code 107' -e 'delay 0.1' -e 'end repeati'
- # osascript method depricated - brightness works better/faster
- # port install brightness ;-)
- brightness="/opt/local/bin/brightness"
- brightness 0
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement