Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jdykstra

Pages: [1]
1
Customization / Faster remote control through LIRC
« on: September 29, 2010, 05:27:39 »
There are several ways to connect gmusicbrowser to the Linux infra-red control software (LIRC).  One method, which uses the irexec command, is described elsewhere in this forum.  It requires that a new process be started for each remote control button push, and can have response time limitations and is racy when more than one button is quickly pushed in succession.

Another method, which uses the irxevent command, does not have these problems.  Instead of feeding commands to gmusicbrowser through its command-line options, this method sends simulated keypresses directly to the application.

See http://www.lirc.org/ for documentation on LIRC, the .lircrc file format, and irxevent.

Here's a sample .lircrc file that implements basic control buttons:

Code: [Select]
begin
   prog = irxevent
   button = KEY_PLAYPAUSE
   config = Key ctrl-g CurrentWindow
end

begin
   prog = irxevent
   button = KEY_NEXT
   config = Key ctrl-x CurrentWindow
end

begin
        prog = irxevent
        button = KEY_PREVIOUS
        config = Key ctrl-z CurrentWindow
end

begin
prog = irxevent
button = KEY_STOP
config = Key ctrl-b CurrentWindow
end

This is the KeyBindings line that I added to my layout to translate the keypresses generated irxevent into gmusicbrowser commands:

Code: [Select]
KeyBindings     = c-g PlayPause c-b Stop c-x NextSong c-z PrevSong c-r Rewind(999999)


2
Customization / Keybindings not working in 1.0.2?
« on: September 10, 2010, 02:29:46 »
I'm using gmusicbrowser on Ubuntu Lucid, and I've had no luck getting keybindings to work.  Is this a known problem?

I've tried adding keybindings via the settings window, and by adding the KeyBindings property to the layout I'm using.  In both cases, I see no response to hitting the configured key.

A couple of layouts included with the package use escape as a keybinding to close the window.  I've tried modifying one of them to look for a different key, and once I do, escape no longer closes the window, but neither does my newly-configured key. 

Here's the test property I added to my own layout:

Keybindings   = Ctrl-n EnqueueSelected

(I know that Ctrl-q will do the EnqueueSelected action--I was just using this as a test.)

What am I doing wrong?

Pages: [1]