2008-08-24, 18:51
I posted this over at boxee.tv, and thought it might have some value here, too.
This is entirely my own hack, but it's fairly obvious. Please accept my apology in advance, if it's been posted.
----------------------------------------------------------------------------------------------------------------------------
*THIS IS A COMPLETE HACK*
in fullscreen mode, XBMC locks the mouse/keyboard to it's window.
as a result, you can not launch XBMC fullscreen on one monitor, and still use your mouse/keyboard on another.
this is an issue with the sdl frameword that boxee/xbmc are based on, and not something that is easily fixed the those teams.
so here's what you can do:
1. install wmctrl.
click here on ubuntu.
2. configure boxee to launch in windowed mode.
in boxee: Settings > Appearance > Screen > Resolution.
set it to anything that ends in: "(Window)"
3. use wmctrl to make boxee fullscreen.
wmctrl -x -r xbmc.bin.xbmc.bin -b toggle,fullscreen
BAM! fullscreen XBMC, completely usable mouse/keyboard.
now, this is all fine and good, but I want to launch XBMC like this.
here is a simple shell script:
save this as ~/bin/launch-xbmc
then run this command:
chmod +x ~/bin/launch-xbmc
-------------------------------------------------------------------------------------------------------------------
note: set "DISPLAY" to whichever display you want XBMC to run on.
note: you may need to adjust "SLEEPDELAY" to be longer or shorter, depending on your system.
confession: i suck at scripting, so if i did something dumb, lemme know.
This is entirely my own hack, but it's fairly obvious. Please accept my apology in advance, if it's been posted.
----------------------------------------------------------------------------------------------------------------------------
*THIS IS A COMPLETE HACK*
in fullscreen mode, XBMC locks the mouse/keyboard to it's window.
as a result, you can not launch XBMC fullscreen on one monitor, and still use your mouse/keyboard on another.
this is an issue with the sdl frameword that boxee/xbmc are based on, and not something that is easily fixed the those teams.
so here's what you can do:
1. install wmctrl.
click here on ubuntu.
2. configure boxee to launch in windowed mode.
in boxee: Settings > Appearance > Screen > Resolution.
set it to anything that ends in: "(Window)"
3. use wmctrl to make boxee fullscreen.
wmctrl -x -r xbmc.bin.xbmc.bin -b toggle,fullscreen
BAM! fullscreen XBMC, completely usable mouse/keyboard.
now, this is all fine and good, but I want to launch XBMC like this.
here is a simple shell script:
Code:
#! /bin/bash
STATUS=0
WINCLASS=xbmc.bin.xbmc.bin
DISPLAY=:0.1
SLEEPDELAY=1
/usr/bin/xbmc "$@" &
while [ $STATUS -eq 0 ]
do
sleep $SLEEPDELAY
STATUS=`wmctrl -x -l | grep $WINCLASS | wc -l | awk '{print $1}'`
done
wmctrl -x -r $WINCLASS -b toggle,fullscreen
then run this command:
chmod +x ~/bin/launch-xbmc
-------------------------------------------------------------------------------------------------------------------
note: set "DISPLAY" to whichever display you want XBMC to run on.
note: you may need to adjust "SLEEPDELAY" to be longer or shorter, depending on your system.
confession: i suck at scripting, so if i did something dumb, lemme know.