Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
up vote 2 down vote accepted

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:

(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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .