Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Would it be possible to automatically dim (turn off) keyboard backlight if media player (namely VLC) is playing?

Could it for example be coded with applescript?

The use case is I've find myself only dimming the backlight watching movies, so I wouldn't have to manage it manually all the time.

share|improve this question
1  
Why can't you in the Apple menu -> System Preferences -> Keyboard adjust the keyboard slider to turn off illumination for example after 1 minute of inactivity? –  harrymc Oct 21 '13 at 5:49
    
@harrymc I use that right now and while that's quite a good solution, I would prefer the keyboard always dimmed while playing a movie and having long delay when working. I set the delay to 10 seconds, but that means every time I adjust the volume while the movie is playing, there are 10 seconds of distracting backlight. It's a petty problem though :) –  Mikulas Dite Oct 21 '13 at 10:17
    
The only solution is to manually turn backlight off/on during play. You could use an applescript to do that if going into keyboard preferences is too tiresome. –  harrymc Oct 21 '13 at 10:38

1 Answer 1

up vote 2 down vote accepted
+50

You can do this by an AppleScript to dim the keyboard then start the VLC player. You can get the script for dimming the backlight from here: https://discussions.apple.com/thread/3371560

(I don't want to violate any copyrights) And to open VLC add following lines at the end,

tell application "VLC" to activate
 end tell

If you are new to AppleScript this would help. http://www.maclife.com/article/columns/terminal_101_running_applescripts_terminal.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.