Skip to content

Instantly share code, notes, and snippets.

@sneakyness
Created May 9, 2020 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sneakyness/61e74c2534fbcefa2418cbc25b93819f to your computer and use it in GitHub Desktop.
Save sneakyness/61e74c2534fbcefa2418cbc25b93819f to your computer and use it in GitHub Desktop.
Macbook Pro Highest/Maximum Screen Backlight Brightness (Fast!) via Terminal command
# on my MBP, this sets the screen backlight brightness to max much faster than any of the other working methods I've found
# nobody seems to demonstrate that you can send a stream of events when they show how this can be used
# might be 145 or similar on your hardware, try one at a time first:
# osascript -e 'tell application \"System Events\"' -e 'key code 144' -e ' end tell'
alias bri="osascript -e 'tell application \"System Events\"' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e 'key code 144' -e ' end tell'"
# this wouldn't be necessary if opening spotlight, typing "displays", and hitting enter was as fast as it used to be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment