[LINUX] Switching between Boxee and XBMC via Remote Control (lirc)? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228) +---- Thread: [LINUX] Switching between Boxee and XBMC via Remote Control (lirc)? (/showthread.php?tid=67990) |
[LINUX] Switching between Boxee and XBMC via Remote Control (lirc)? - WeakATV - 2010-01-20 I really enjoy some specific features from both xbmc and boxee... Is it possible to program a button (I have an MCE remote) that will execute a script which would then determine if one is on, stop it and start the other? Maybe something like having a random key not used map to a script like this Code: #!/bin/bash I pieced that together from random google searches - I know it won't work, just using it as an example... Anyone want to help out? - herg - 2010-01-20 Here's a thread that describes using remote buttons to kill and restart XBMC: http://forum.xbmc.org/showthread.php?tid=30230 It should be fairly simple to modify for your needs. - WeakATV - 2010-01-21 Got it working, thanks! I can quickly jump to XBMC for local content and eye candy, and jump back to Boxee for some online feeds from the remote. For the others that want to do this... This will work, but I'm sure there are better ways of doing it though. (replace "user" with the username that is used to start these processes) Kill xbmc and start Boxee Code: !/bin/bash Kill Boxee, start XBMC. Needed to start xbmc first before stopping boxee for some reason. Also commented the first attempt to stop the process through troubleshooting as this simply was not working. The 3rd to last line is not doing anything, the script stops before getting to it. Code: !/bin/bash The "DISPLAY=:0" is useful if your testing from SSH (by manually running it) so it doesn't attempt to open on the console. Not sure if it serves any other purpose. Also not sure if this will eventually F*** anything up by which these processes are stopping (-9). |