Skip to content

Instantly share code, notes, and snippets.

@cgoldberg
Created August 31, 2013 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cgoldberg/6398602 to your computer and use it in GitHub Desktop.
Save cgoldberg/6398602 to your computer and use it in GitHub Desktop.
launch XBMC one one screen in fullscreen mode, in multi-monitor setup.
#!/bin/bash
# Launch XBMC in windowed mode, then use wmctrl to remove the titlebar
# Select display 1
DISPLAY=:0.0
# Start XBMC without blocking this script
xbmc &
# Wait for the XBMC window to appear
status=0
while [ $status -eq 0 ]
do
sleep 1
status=`wmctrl -x -l | grep "XBMC Media Center" | wc -l | awk '{print $1}'`
done
# Force XBMC window to fullscreen
wmctrl -x -r XBMC Media Center.XBMC Media Center -b toggle,fullscreen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment