Monday 26 May 2008

.lircrc config file goes in ~

For Totem, VLC and Rhythmbox

---------------------------------------------------------

# lircrc for iMON
#
# To check button names on your remote, make sure lircd is running and run irw
# Pressing buttons will show the appropriate button name
#

# Non-program specific
#

# Command bindings

begin irexec

begin
button = MyMovie
prog = irexec
repeat = 0
config = vlc
mode = vlc
end

begin
button = MyMusic
prog = irexec
repeat = 0
config = rhythmbox
mode = rhythmbox
end

end irexec

##############################################
### Rhythmbox juke box player
###############################################

begin rhythmbox

begin
button = MyMovie
prog = irexec
repeat = 0
config = totem
mode = totem
end

begin
button = MyMusic
prog = irexec
repeat = 0
config = rhythmbox
mode = rhythmbox
end

begin
prog = Rhythmbox
button = AppExit
config = quit
flags = mode
end

begin
prog = Rhythmbox
button = Play
config = play
end

begin
prog = Rhythmbox
button = Pause
config = pause
config = play
repeat = 0
end

begin
prog = Rhythmbox
button = Stop
config = stop
end

begin
prog = Rhythmbox
button = Vol+
config = volume_up
repeat = 3
end

begin
prog = Rhythmbox
button = Vol-
config = volume_down
repeat = 3
end

begin
prog = Rhythmbox
button = NextChapter
config = next
end

begin
prog = RhythmBox
button = PrevChapter
config = previous
end

begin
prog = RhythmBox
button = Mute
config = mute
end

begin
prog = RhythmBox
button = Eject
config = shuffle
end

begin
prog = RhythmBox
button = FastForward
config = seek_forward
repeat = 5
end

begin
prog = RhythmBox
button = Rewind
config = seek_backward
repeat = 5
end

end rhythmbox

##############################################
### Totem player
###############################################

begin totem

begin
button = MyMusic
prog = irexec
repeat = 0
config = rhythmbox
mode = rhythmbox
end

begin
button = MyMovie
prog = irexec
repeat = 0
config = totem
mode = totem
end

begin
prog = Totem
button = AppExit
config = quit
flags = mode
end

begin
prog = Totem
button = Play
config = play
end

begin
prog = Totem
button = Pause
config = pause
config = play
repeat = 0
end

begin
prog = Totem
button = Stop
config = stop
end

begin
prog = Totem
button = Vol+
config = volume_up
repeat = 3
end

begin
prog = Totem
button = Vol-
config = volume_down
repeat = 3
end

begin
prog = Totem
button = NextChapter
config = next
end

begin
prog = Totem
button = PrevChapter
config = previous
end

begin
prog = Totem
button = Mute
config = mute
end

begin
prog = Totem
button = Eject
config = shuffle
end

begin
prog = Totem
button = FastForward
config = seek_forward
repeat = 5
end

begin
prog = Totem
button = Rewind
config = seek_backward
repeat = 5
end

end totem

##############################################
### VLC player
###############################################

begin vlc

begin
button = MyMusic
prog = irexec
repeat = 0
config = rhythmbox
mode = rhythmbox
end

begin
button = MyMovie
prog = irexec
repeat = 0
config = vlc
mode = vlc
end

begin
prog = Totem
button = AppExit
config = key-quit
flags = mode
end

begin
prog = vlc
button = Play
config = key-play-pause
end
begin
prog = vlc
button = Pause
config = key-play-pause
end
begin
prog = vlc
button = Stop
config = key-stop
end
begin
prog = vlc
button = FastForward
config = key-jump+medium
end
begin
prog = vlc
button = forward
config = key-next
end
begin
prog = vlc
button = Rewind
config = key-prev
end
begin
prog = vlc
button = Vol+
config = key-vol-up
repeat = 1
end
begin
prog = vlc
button = Vol-
config = key-vol-down
repeat = 1
end
begin
prog = vlc
button = Mute
config = key-vol-mute
end
end vlc