Created
August 31, 2013 14:33
-
-
Save cgoldberg/6398602 to your computer and use it in GitHub Desktop.
launch XBMC one one screen in fullscreen mode, in multi-monitor setup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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