# ~/.mythtv/lircrc
# 
# MythTV native LIRC config file for
# the RadioShack 15-2116, VCR type 0081
# using Hauppauge IR receiver
# 
# By Jarod Wilson, 2003/12/31
# Amalgamated from Harry O's
# .lircrc, the mythtv.org docs, and
# a few touches of my own. :)
#

# Channel Up
begin
prog = mythtv
button = CH+
repeat = 4
config = Up
end

# Channel Down
begin
prog = mythtv
button = CH-
repeat = 4
config = Down
end

# OK/Select
begin
prog = mythtv
button = SELECT
repeat = 4
config = Return
end

# Play
begin
prog = mythtv
button = PLAY
repeat = 4
config = Space
end

# Stop
begin
prog = mythtv
button = STOP
repeat = 4
config = Esc
end

# Escape/Exit/Back
begin
prog = mythtv
button = EXIT
repeat = 4
config = Esc
end

# Power Off/Exit
begin
prog = mythtv
button = POWER
repeat = 4
config = Esc
end

# Pause
begin
prog = mythtv
button = PAUSE
repeat = 4
config = P
end

# Mute
begin
prog = mythtv
button = MUTE
repeat = 4
config = |
end

# Rewind (10 sec default)
begin
prog = mythtv
button = REW
repeat = 4
config = Left
end

begin
prog = mythtv
button = LEFT
repeat = 4
config = Left
end

# Fast forward (30 sec default)
begin
prog = mythtv
button = FFWD
repeat = 4
config = Right
end

begin
prog = mythtv
button = RIGHT
repeat = 4
config = Right
end

# Skip forward (10 min default)
begin
prog = mythtv
button = FREEZE
repeat = 4
config = PgDown
end

# Skip backward (10 min default)
begin
prog = mythtv
button = MOVE
repeat = 4
config = PgUp
end

# Record
begin
prog = mythtv
button = REC
repeat = 4
config = R
end

# OSD browse
begin
prog = mythtv
button = GUIDE
repeat = 4
config = O
end

# Display EPG while in live TV,
# View selected show while in EPG
begin
prog = mythtv
button = MENU
repeat = 4
config = M
end

# Bring up OSD info
begin
prog = mythtv
button = INFO
repeat = 4
config = I
end

# Change display aspect ratio
begin
prog = mythtv
button = +100
repeat = 4
config = W
end

# Seek to previous commercial cut point
begin
prog = mythtv
button = SLEEP
repeat = 4
config = Q
end

# Seek to next commercial cut point
begin
prog = mythtv
button = ENTER
repeat = 4
config = Z
end

# Change TV card input
begin
prog = mythtv
button = TV/VIDEO
repeat = 4
config = C
end

# Toggle Picture-In-Picture
begin
prog = mythtv
button = PIP
repeat = 4
config = V
end

# Swap PIP
begin
prog = mythtv
button = SWAP
repeat = 4
config = N
end

# Cycle through channel history
begin
prog = mythtv
button = LAST
repeat = 4
config = H
end

# Numbers 0-9

begin
prog = mythtv
button = 0
repeat = 4
config = 0
end

begin
prog = mythtv
button = 1
repeat = 4
config = 1
end

begin
prog = mythtv
button = 2
repeat = 4
config = 2
end

begin
prog = mythtv
button = 3
repeat = 4
config = 3
end

begin
prog = mythtv
button = 4
repeat = 4
config = 4
end

begin
prog = mythtv
button = 5
repeat = 4
config = 5
end

begin
prog = mythtv
button = 6
repeat = 4
config = 6
end

begin
prog = mythtv
button = 7
repeat = 4
config = 7
end

begin
prog = mythtv
button = 8
repeat = 4
config = 8
end

begin
prog = mythtv
button = 9
repeat = 4
config = 9
end

### MPlayer commands

begin
prog = mplayer
button = MENU
repeat = 4
config = osd
end

begin
prog = mplayer
button = PAUSE
repeat = 4
config = pause
end

begin
prog = mplayer
button = PLAY
repeat = 4
config = seek +1
end

begin
prog = mplayer
button = STOP
repeat = 4
config = quit
end

begin
prog = mplayer
button = MUTE
repeat = 4
config = mute
end

begin
prog = mplayer
button = REW
repeat = 4
config = seek -10
end

begin
prog = mplayer
button = LEFT
repeat = 4
config = seek -10
end

begin
prog = mplayer
button = FFWD
repeat = 4
config = seek +30
end

begin
prog = mplayer
button = RIGHT
repeat = 4
config = seek +30
end

begin
prog = mplayer
button = EXIT
repeat = 4
config = quit
end

begin
prog = mplayer
button = FREEZE
repeat = 4
config = seek +1200
end

begin
prog = mplayer
button = MOVE
repeat = 4
config = seek -1200
end

begin
prog = mplayer
button = +100
repeat = 4
config = vo_fullscreen
end

### Xine commands

begin
prog = xine
button = PLAY
repeat = 3
config = Play
end

begin
prog = xine
button = STOP
repeat = 3
config = Stop
end

begin
prog = xine
button = POWER
repeat = 3
config = Quit
end

begin
prog = xine
button = EXIT
repeat = 3
config = Quit
end

begin
prog = xine
button = PAUSE
repeat = 3
config = Pause
end

begin
prog = xine
button = CH+
repeat = 3
config = EventUp
end

begin
prog = xine
button = CH-
repeat = 3
config = EventDown
end

begin
prog = xine
button = LEFT
repeat = 3
config = EventLeft
end

begin
prog = xine
button = RIGHT
repeat = 3
config = EventRight
end

begin
prog = xine
button = SELECT
repeat = 3
config = EventSelect
end

begin
prog = xine
button = GUIDE
repeat = 3
config = Menu
end

begin
prog = xine
button = FFWD
repeat = 3
config = SeekRelative+30
end

begin
prog = xine
button = REW
repeat = 3
config = SeekRelative-30
end

begin
prog = xine
button = VOL+
repeat = 3
config = Volume+
end

begin
prog = xine
button = VOL-
repeat = 3
config = Volume-
end

begin
prog = xine
button = MUTE
repeat = 3
config = Mute
end

begin
prog = xine
button = MENU
repeat = 3
config = RootMenu
end

begin
prog = xine
button = FREEZE
repeat = 3
config = EventNext
end

begin
prog = xine
button = LAST 
repeat = 3
config = EventPrior
end

begin
prog = xine
button = INFO
repeat = 3
config = OSDStreamInfos
end

begin
prog = xine
button = ENTER
repeat = 3
config = SpeedFaster
end

begin
prog = xine
button = SLEEP
repeat = 3
config = SpeedSlower
end
