My goal is to have my room lights dim when VLC is playing a video track, then raise the lights when it's done. I'm controlling the lights via X10 and have worked out a shell command for each action. What I'm stuck on now is how can I write a function for VLC to have it call my shell command when med...