Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- # Launch XBMC in windowed mode, then use wmctrl to remove the titlebar
- # Works with nvidia TwinView (one big virtual display)
- # 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
- # Move XBMC to secondary monitor
- wmctrl -x -r XBMC Media Center.XBMC Media Center -e 0,0,0,800,600
- # Force XBMC window to fullscreen
- wmctrl -x -r XBMC Media Center.XBMC Media Center -b toggle,fullscreen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement