Here's the .lircrc file that I'm using for the MCE v2 remote with myth, mplayer, and xine. I copied and modified it from somewhere, and note that the 'Alt+' keys in myth have been set in Myth's keymap editor.
Code:
# MythTV LIRC config file for the mceusb2
#
#
# /home/mythtv/.mythtv/lircrc
#
#
# reload frontend
#
begin
prog = irexec
button = Power
config = sudo killall xinit
end
#
### mythtv
#
# Home screen
begin
prog = mythtv
button = Home
config = Alt+Home
end
# Program Guide
begin
prog = mythtv
button = Guide
config = Alt+G
end
# TV Recording Playback
begin
prog = mythtv
button = RecTV
config = Alt+R
end
# Live TV
begin
prog = mythtv
button = LiveTV
config = Alt+P
end
# MythVideo
begin
prog = mythtv
button = DVD
config = Alt+V
end
# Channel Up
begin
prog = mythtv
button = ChanUp
config = Up
end
# Channel Down
begin
prog = mythtv
button = ChanDown
config = Down
end
# OK/Select
begin
prog = mythtv
button = OK
config = Return
end
# Play
begin
prog = mythtv
button = Play
config = P
end
# Stop
begin
prog = mythtv
button = Stop
config = Esc
end
# Escape/Exit/Back
begin
prog = mythtv
button = Back
config = Esc
end
# Pause
begin
prog = mythtv
button = Pause
config = P
end
# Mute
begin
prog = mythtv
button = Mute
config = |
end
begin
prog = mythtv
button = Up
repeat = 2
config = Up
end
begin
prog = mythtv
button = Right
repeat = 2
config = Right
end
begin
prog = mythtv
button = Down
repeat = 2
config = Down
end
begin
prog = mythtv
button = Left
repeat = 2
config = Left
end
# Fast forward (while viewing)
begin
prog = mythtv
button = Forward
repeat = 2
config = >
end
# Rewind (while viewing)
begin
prog = mythtv
button = Rewind
repeat = 2
config = <
end
# Skip forward (1 min default)
begin
prog = mythtv
button = Skip
repeat = 2
config = PgDown
end
# Skip backward (1 min default)
begin
prog = mythtv
button = Replay
repeat = 2
config = PgUp
end
# Record
begin
prog = mythtv
button = Record
config = R
end
# back 24 hours in guide
begin
prog = mythtv
button = Clear
repeat = 2
config = Home
end
# forward 24 hours in guide
begin
prog = mythtv
button = Enter
repeat = 2
config = End
end
# Display menu while in live TV or recording
begin
prog = mythtv
button = Pictures
config = M
end
# Volume-Up
begin
prog = mythtv
button = VolUp
repeat = 2
config = ]
end
# Volume-Down
begin
prog = mythtv
button = VolDown
repeat = 2
config = [
end
# Bring up OSD info
begin
prog = mythtv
button = More
config = I
end
# Change display aspect ratio
begin
prog = mythtv
button = TV
config = W
end
# Seek to previous commercial cut point
begin
prog = mythtv
button = Star
config = Q
end
# Seek to next commercial cut point
begin
prog = mythtv
button = Hash
config = Z
end
# Numbers 0-9
begin
prog = mythtv
button = Zero
repeat = 2
config = 0
end
begin
prog = mythtv
button = One
repeat = 2
config = 1
end
begin
prog = mythtv
button = Two
repeat = 2
config = 2
end
begin
prog = mythtv
button = Three
repeat = 2
config = 3
end
begin
prog = mythtv
button = Four
repeat = 2
config = 4
end
begin
prog = mythtv
button = Five
repeat = 2
config = 5
end
begin
prog = mythtv
button = Six
repeat = 2
config = 6
end
begin
prog = mythtv
button = Seven
repeat = 2
config = 7
end
begin
prog = mythtv
button = Eight
repeat = 2
config = 8
end
begin
prog = mythtv
button = Nine
repeat = 2
config = 9
end
#
### MPlayer lirc setup
#
# Show OSD
begin
prog = mplayer
button = OK
config = osd
end
# Pause playback
begin
prog = mplayer
button = Pause
config = pause
end
# If paused, resume playing
begin
prog = mplayer
button = Play
config = pause
end
# Stop playback and exit
begin
prog = mplayer
button = Stop
config = quit
end
# Volume-Up
begin
prog = mplayer
button = VolUp
repeat = 2
config = volume +1
end
# Volume-Down
begin
prog = mplayer
button = VolDown
repeat = 2
config = volume -1
end
# Mute
begin
prog = mplayer
button = Mute
config = mute
end
# Seek back 60 seconds
begin
prog = mplayer
button = Left
repeat = 2
config = seek -60
end
# Seek forward 60 seconds
begin
prog = mplayer
button = Right
repeat = 2
config = seek +60
end
# Seek back 10 seconds
begin
prog = mplayer
button = Rewind
repeat = 2
config = seek -10
end
# Seek forward 30 seconds
begin
prog = mplayer
button = Forward
repeat = 2
config = seek +30
end
# Quit
begin
prog = mplayer
button = Back
config = quit
end
# Seek forward 10 minutes
begin
prog = mplayer
button = Skip
repeat = 2
config = seek +600
end
# Seek backward 10 minutes
begin
prog = mplayer
button = Replay
repeat = 2
config = seek -600
end
# increase brightness
begin
button = ChanUp
prog = mplayer
repeat = 2
config = brightness +1
end
# decrease brightness
begin
button = ChanDown
prog = mplayer
repeat = 2
config = brightness -1
end
# Toggle full-screen
#begin
#prog = mplayer
#button = FULL
#repeat = 2
#config = vo_fullscreen
#end
#
#
### XINE CONFIGURATION
#
##
# xine key bindings.
# Automatically generated by xine-ui version 0.99.2.
##
# start playback
begin
button = Play
prog = xine
config = Play
end
# playback pause toggle
begin
button = Pause
prog = xine
config = Pause
end
# stop playback
begin
button = Stop
prog = xine
config = Stop
end
# take a snapshot
#begin
# button = Record
# prog = xine
# repeat = 2
# config = Snapshot
#end
# eject the current medium
#begin
# remote = xxxxx
# button = xxxxx
# prog = xine
# repeat = 2
# config = Eject
#end
# set position to -60 seconds in current stream
begin
button = Replay
prog = xine
repeat = 2
config = SeekRelative-60
end
# set position to +60 seconds in current stream
begin
button = Skip
prog = xine
repeat = 2
config = SeekRelative+60
end
# set position to -30 seconds in current stream
#begin
# button = Rewind
# prog = xine
# repeat = 2
# config = SeekRelative-30
#end
# set position to +30 seconds in current stream
#begin
# button = Forward
# prog = xine
# repeat = 2
# config = SeekRelative+30
#end
# set position to +7 and -7 seconds in current stream
begin
button = One
prog = xine
repeat = 2
config = SeekRelative-7
end
begin
button = Two
prog = xine
repeat = 2
config = SeekRelative+7
end
begin
button = Four
prog = xine
repeat = 2
config = SetPosition40%
end
begin
button = Five
prog = xine
repeat = 2
config = SetPosition70%
end
begin
button = Forward
prog = xine
repeat = 2
config = SpeedFaster
end
begin
button = Rewind
prog = xine
repeat = 2
config = SpeedSlower
end
#begin
# button = OK
# prog = xine
# repeat = 2
# config = SpeedReset
#end
# increment audio volume
begin
button = VolUp
prog = xine
repeat = 2
config = Volume+
end
# decrement audio volume
begin
button = VolDown
prog = xine
repeat = 2
config = Volume-
end
# audio muting toggle
begin
button = Mute
prog = xine
config = Mute
end
# set video output window to 100%
#begin
# remote = xxxxx
# button = xxxxx
# prog = xine
# repeat = 2
# config = Window100
#end
# set video output window to 200%
#begin
# remote = xxxxx
# button = xxxxx
# prog = xine
# repeat = 2
# config = Window200
#end
# zoom in
#begin
# remote = xxxxx
# button = xxxxx
# prog = xine
# repeat = 2
# config = ZoomIn
#end
# zoom out
#begin
# remote = xxxxx
# button = xxxxx
# prog = xine
# repeat = 2
# config = ZoomOut
#end
# fullscreen toggle
#begin
# remote = xxxxx
# button = xxxxx
# prog = xine
# repeat = 2
# config = ToggleFullscreen
#end
# jump to Title Menu
begin
button = DVD
prog = xine
config = TitleMenu
end
# jump to Root Menu
begin
button = Home
prog = xine
config = RootMenu
end
# menu navigate up
begin
button = Up
prog = xine
repeat = 2
config = EventUp
end
# menu navigate down
begin
button = Down
prog = xine
repeat = 2
config = EventDown
end
# menu navigate left
begin
button = Left
prog = xine
repeat = 2
config = EventLeft
end
# menu navigate right
begin
button = Right
prog = xine
repeat = 2
config = EventRight
end
# visibility toggle of stream info window
begin
button = Guide
prog = xine
config = StreamInfosShow
end
# display stream information using OSD
begin
button = OK
prog = xine
config = OSDStreamInfos
end
# increase brightness by 10
begin
button = ChanUp
prog = xine
repeat = 2
config = BrightnessControl+
end
# decrease brightness by 10
begin
button = ChanDown
prog = xine
repeat = 2
config = BrightnessControl-
end
# quit the program
begin
button = Back
prog = xine
config = Quit
end
##
# End of xine key bindings.
##