[mythtv-users] how do I bring myth frontend to the "top"?

sschaefer1 at woh.rr.com sschaefer1 at woh.rr.com
Mon Nov 6 21:08:48 UTC 2006


Isn't "irexec" intended to execute an application?
I read the question as, how to I bring a currently running application 
to the foreground? (I've never done anything like this, but I would 
try something like...)

 begin
 prog = irxevent
 button = WHATEVER
 repeat = 2
 config = Key alt-tab RootWindow
 end

... my idea here is, ALT-TAB should allow you to cycle between all the 
active windows, one by one. RootWindow would be your window manager, 
presuming ALT-TAB is recognized in the window manager as such.

----- Original Message -----
From: Brad DerManouelian <myth at dermanouelian.com>
Date: Monday, November 6, 2006 3:52 pm
Subject: Re: [mythtv-users] how do I bring myth frontend to the "top"?
To: Discussion about mythtv <mythtv-users at mythtv.org>

> On Nov 6, 2006, at 3:11 PM, Richard Bronosky wrote:
> 
> > I want to make it easy for my wife to switch from Firefox to 
> Myth and
> > vice versa.  I'd like to make one of the media buttons on the 
> wireless> KB go to her web mail in FF, and one button on the KB 
> and the remote
> > go to the running mythfrontend, or launch it if it is not running.
> >
> > Is there a shell script way to tell X to bring an app to the top?
> > Is there a good way to make a certain button on the remote (using
> > LIRC) to do a specific thing, no matter what app is on top?
> > Do you have a preferred way of utilizing the media buttons on a 
> USB  
> > KB?
> >
> > Please advise.
> 
> I don't remember the command to bring a particular window into 
> focus,  
> but you would use irexec to accomplish that. Load irexec on 
> startup  
> and in your lirc config, specify irexec as the app and the config  
> points to a file it should when the key is pressed. For instance, 
> I  
> grabbed this from Jarod's guide:
> 
> # Power Button
> begin
> prog = irexec
> button = OFF
> #button = POWER # (for my RS15-2116 remote)
> repeat = 4
> config = /usr/local/bin/mythpowerbutton.sh
> end
> 
> Modify to suit your needs. You can make buttons do all kinds of 
> fun  
> stuff. :)



More information about the mythtv-users mailing list