Search:  
Gentoo Wiki

Rhythmbox

LIRC

First we have to emerge rhythmbox with LIRC support. This can be done by setting the USE flag lirc for the package. Then we need to edit ~/.lircrc. Following is an example for a potential reduced configuration.

File: ~/.lircrc
begin
        prog = Rhythmbox
        remote = *
        button = play
        config = play
end
begin
        prog = Rhythmbox
        remote = *
        button = pause
        config = pause
end

The full list of available commands can be found in the file rb-lirc-plugin.c in the rhythmbox source tree.

Here's the interesting contents for rhythmbox version 0.9.7

File: rb-lirc-plugin.c
#define RB_IR_COMMAND_PLAY "play"
#define RB_IR_COMMAND_PAUSE "pause"
#define RB_IR_COMMAND_PLAYPAUSE "playpause"
#define RB_IR_COMMAND_STOP "stop"
#define RB_IR_COMMAND_SHUFFLE "shuffle"
#define RB_IR_COMMAND_REPEAT "repeat"
#define RB_IR_COMMAND_NEXT "next"
#define RB_IR_COMMAND_PREVIOUS "previous"
#define RB_IR_COMMAND_SEEK_FORWARD "seek_forward"
#define RB_IR_COMMAND_SEEK_BACKWARD "seek_backward"
#define RB_IR_COMMAND_VOLUME_UP "volume_up"
#define RB_IR_COMMAND_VOLUME_DOWN "volume_down"
#define RB_IR_COMMAND_MUTE "mute"
Retrieved from "http://www.gentoo-wiki.info/Rhythmbox"

Last modified: Tue, 19 Aug 2008 22:13:00 +0000 Hits: 404