View difference between Paste ID: hfuLzzMc and mcweUUZm
SHOW: | | - or go back to the newest paste.
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)
3+
# debian/ubuntu - apt-get install wmctrl
4
# Works with nvidia TwinView (one big virtual display) Also with AMD catalyst drivers.
5
6
# Start XBMC without blocking this script
7
xbmc &
8
9
# Wait for the XBMC window to appear
10
status=0
11
while [ $status -eq 0 ]
12
do
13
        sleep 1
14
        status=`wmctrl -x -l | grep "XBMC Media Center" | wc -l | awk '{print $1}'`
15
done
16
17-
wmctrl -x -r XBMC Media Center.XBMC Media Center -e 0,0,0,800,600
17+
18
wmctrl -x -r XBMC Media Center.XBMC Media Center -e 0,1920,0,1440,900
19
20
# Force XBMC window to fullscreen
21
wmctrl -x -r XBMC Media Center.XBMC Media Center -b toggle,fullscreen