![]() ![]() Once you have it installed, launch it via whatever app launcher you prefer. (If you are someone who likes the Terminal.app, you might want to put the dimscreen.zsh script into your $PATH as well, so you can launch it from the command line.) Then double-click the 2 file, and move the 'brightness' file to the ~/bin directryory you just created.ģ) If you pride yourself on your distrust, then by all means, download the source code from the links provided above, compile the 'brightness' command on your own, and move it to ~/bin/ (where ~ is your Home directory). (It will only do that once.)Ģ) If you are trusting to a point but don't want the app to download anything automatically, make a directory called 'bin' in your home directory (that's the one which has the 'Desktop' and 'Documents' and 'Downloads' directories in it). The first time you run it, make sure that you are online so that it can download the brightness utility. "How do I use this?"ġ) If you are the trusting type (or just impatient), download DimScreen, double click it to 'unarchive' it, and then move the 'Dim Screen.app' to /Applications/ (or wherever you keep your apps) and run it. I put dimscreen.zsh and the 'Dim Screen.app' and the 'brightness' command (and the source code) all into one nice neat package and put it on my Dropbox as DimScreen. I took dimscreen.zsh and made it into an app ("Dim Screen.app") using Automator. Then you can adjust the brightness to whatever level you want. That should keep you from getting blinded if you are working at night. If you do not require a password to be entered after your screensaver is turned on, my script will turn the brightness up as little as possible after the screensaver exits. (Mac OS X is smart enough to automatically turn the screen brightness up a little for you to see that you need to enter your password.) If you have enabled the preference which requires a password to be entered after your screensaver is turned on, you will see that prompt. However if the screensaver is on, one of two things will happen: If you move the mouse or type, you won't see anything. Why does it launch your screensaver? Because otherwise when you went to use your Mac, you might have forgotten that you set the brightness to 0. ![]() Once brightness is installed, it will dim the screen to 0 and then launch your screensaver. If it does not find it there, it will attempt to download it "automagically" from my personal website and then install it to $HOME/bin/brightness. I wrote a shell script ( dimscreen.zsh) which looks for brightness at $HOME/bin/brightness. ![]() If all of that seems like a lot of hassle, Matt also made a pre-compiled binary available for you to download. If you don't, you can either download and install Xcode (warning: it's 3 GB to download and I think it's somewhere between 7-10 GB when installed). Of course that assumes that you have Xcode installed. Gcc -std=c99 -o brightness brightness.c -framework IOKit -framework ApplicationServices Matt includes the source code on his page, or you can download the original 'brightness.c' here and then you can compile it (according to Matt's instructions) using this line: Nicholas Riley wrote a C program called brightness which I found via Matt "Danger" West's website, which I found via Google. (I highly recommend reading to the end before you do anything.) Let me be clear that my little shell script wrapped in Automator was only a tiny piece of this puzzle.įirst I'm going to tell you who did all the heavy lifting, and then you can decide how you want to put the pieces together for yourself. So I did what any self-respecting geek would do: I wrote a shell script. Yes, I know I could just hold F1 and do the same thing manually, but I liked having an app that just did it for me. Somewhere along the way I seem to have lost the app and can no longer find it. Once upon a time, I had an application which would dim the screen of my Mac down to 0, and then exit. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |