Sunday, 3 February 2008

lirc config

Save as .lircrc in ~

# 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 = totem
mode = totem
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

No comments: