Advertisement
Guest User

XBMC Fullscreen secondary monitor nvidia twinview

a guest
Oct 23rd, 2012
6,631
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. #! /bin/bash
  2. # Launch XBMC in windowed mode, then use wmctrl to remove the titlebar
  3. # Works with nvidia TwinView (one big virtual display)
  4.  
  5. # Start XBMC without blocking this script
  6. xbmc &
  7.  
  8. # Wait for the XBMC window to appear
  9. status=0
  10. while [ $status -eq 0 ]
  11. do
  12.         sleep 1
  13.         status=`wmctrl -x -l | grep "XBMC Media Center" | wc -l | awk '{print $1}'`
  14. done
  15.  
  16. # Move XBMC to secondary monitor
  17. wmctrl -x -r XBMC Media Center.XBMC Media Center -e 0,0,0,800,600
  18.  
  19. # Force XBMC window to fullscreen
  20. wmctrl -x -r XBMC Media Center.XBMC Media Center -b toggle,fullscreen
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement