Error 

Archive for July 5th, 2009

VLC on a separate X Screen

Posted July 5, 2009 at 07:07pm in Linux

I have an odd overlay issue when using my HDTV as a second monitor on my desktop. When I would set them up with the correct resolutions they would be reverted to something that caused an overlap. The only way to fix this was to do separate X screens, but I couldn’t remember how to send VLC to the 2nd X screen. Applications like Firefox can accept the –display flag, but VLC does not. To prevent having it send any other applications to the 2nd display I made it a local variable in a bash script and run VLC from there. Just associate movies with the bash script and it will run them full screen on the 2nd X screen.

#!/bin/bash

DISPLAY=:0.1
vlc -f $*