> Greg Oliver wrote: > > On Mon, Apr 19, 2010 at 8:09 AM, Wayne Thomas > wrote: > > On Mon, Apr 19, 2010 at 2:01 PM, Greg Oliver > wrote: > >> I am just looking for some input on what seems to be a personal > >> preference from what I can tell. > >> > >> Trying to just run arbitrary commands while using mythtv from my > >> remote, some mythtv related, some not..  It appears I can have the > >> same functionality by programming irexec commands to buttons > directly, > >> or adding EXEC actions into the theme I use.  I understand the > >> housekeeping required with the theme route, but I was just looking > for > >> technical hurdles that I may hit when trying it with the theme. > >> > >> I have plenty of free buttons to use for irexec (and can make as many > >> as needed as well...), but the idea of having a menu on the screen to > >> just scroll through with categories seems nicer to me.  I plan to > just > >> have a master script with all of my commands in it either way, so it > >> is easy to maintain.. > >> Any pros/cons to this? > >> > >> Thanks > >> > >> -Greg > > > > One con of using theme menus is that you have to quit out of what ever > > you are watching/listening to (back into the menu screen) in order to > > execute the script.  Using irexec means you can do whatever you want > > without disrupting your current entertainment. > > Yeah, *most* of the time, I will not be running these while watching > media though, so using the OSD for feedback may not work. (I have not > dug deep enough to know yet) > > I guess for quickness, I will implement it with irexec and later today > start digging. > > Thanks for the input. > > -Greg > > > I queried a while back about the ability (or not) to insert menu > > selections into the Internal player for exactly this reason but never > > received a reply.  I presume this is because it is far too difficult > > to do. > > > > Cheers > > Wayne > > _______________________________________________ I got a Logitech Harmony remote on the weekend and I decided I wanted to use IREXEC to make the system switch off immediately. The remote attempts to switch all devices off when you press the power button but with the frontend you still need to select exit or exit&shutdown (in my preferred setup). I was planning to use irexec to run a "shutdown now" but it occurred to me that mythbuntu already has a script for this... /usr/share/mythtv/myth-halt.sh ...all I had to do was put in the following begin prog = irexec remote = ANTEC_VERIS_RM200 button = KEY_POWER repeat = 0 config = /usr/share/mythtv/myth-halt.sh & end ...then I restarted my session and pressed the power button and no matter what screen I was in the system would shutdown. However if I wanted to exit to the desktop I could just use the normal ESC method. PS: I put the '&' at the end of the line because I saw it in other examples of executing .sh files. I'm not sure if it is needed but since it worked I didn't bother changing. PPS: I have noticed that sometimes my Logitech remote doesn't respond on the first press and hence I end up with my AMP and TV off but my PC still on. I'm planning to tweak the settings to perhaps allow some repeats of the KEY_POWER button to try and ensure the signal gets through.