<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV><DIV>On Nov 6, 2006, at 3:11 PM, Richard Bronosky wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I want to make it easy for my wife to switch from Firefox to Myth and</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">vice versa.<SPAN class="Apple-converted-space">  </SPAN>I'd like to make one of the media buttons on the wireless</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">KB go to her web mail in FF, and one button on the KB and the remote</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">go to the running mythfrontend, or launch it if it is not running.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Is there a shell script way to tell X to bring an app to the top?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Is there a good way to make a certain button on the remote (using</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">LIRC) to do a specific thing, no matter what app is on top?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Do you have a preferred way of utilizing the media buttons on a USB KB?</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Please advise.</DIV></BLOCKQUOTE></DIV><BR><DIV>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:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="text-align: justify;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(243, 242, 236); "><FONT class="Apple-style-span" face="Courier" size="2"><SPAN class="Apple-style-span" style="font-size: 9.6px;"># Power Button</SPAN></FONT></DIV><DIV style="text-align: justify;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(243, 242, 236); "><FONT class="Apple-style-span" face="Courier" size="2"><SPAN class="Apple-style-span" style="font-size: 9.6px;">begin</SPAN></FONT></DIV><DIV style="text-align: justify;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(243, 242, 236); "><FONT class="Apple-style-span" face="Courier" size="2"><SPAN class="Apple-style-span" style="font-size: 9.6px;">prog = irexec</SPAN></FONT></DIV><DIV style="text-align: justify;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(243, 242, 236); "><FONT class="Apple-style-span" face="Courier" size="2"><SPAN class="Apple-style-span" style="font-size: 9.6px;">button = OFF</SPAN></FONT></DIV><DIV style="text-align: justify;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(243, 242, 236); "><FONT class="Apple-style-span" face="Courier" size="2"><SPAN class="Apple-style-span" style="font-size: 9.6px;">#button = POWER # (for my RS15-2116 remote)</SPAN></FONT></DIV><DIV style="text-align: justify;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(243, 242, 236); "><FONT class="Apple-style-span" face="Courier" size="2"><SPAN class="Apple-style-span" style="font-size: 9.6px;">repeat = 4</SPAN></FONT></DIV><DIV style="text-align: justify;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(243, 242, 236); "><FONT class="Apple-style-span" face="Courier" size="2"><SPAN class="Apple-style-span" style="font-size: 9.6px;">config = /usr/local/bin/mythpowerbutton.sh</SPAN></FONT></DIV><DIV style="text-align: justify;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(243, 242, 236); "><FONT class="Apple-style-span" face="Courier" size="2"><SPAN class="Apple-style-span" style="font-size: 9.6px;">end</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(243, 242, 236); text-align: justify; "><FONT class="Apple-style-span" face="Courier" size="2"><SPAN class="Apple-style-span" style="font-size: 9.6px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="text-align: auto;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; background-color: rgb(243, 242, 236); ">Modify to suit your needs. You can make buttons do all kinds of fun stuff. :)</DIV></BODY></HTML>