# ~/.mythtv/lircrc
#
# MythTV native LIRC config file for
# the Fustion
#

begin
  #Jumppoint for DVD playback created in Mythweb
  prog = mythtv
  button = dvd
  config = @
end

begin
  #Jumppoint for MythWeater created in Mythweb
  prog = mythtv
  button = start
  config = #
end

begin
  #Jumppoint for MythVideo created in Mythweb
  prog = mythtv
  button = cpf
  config = $
end

begin
  prog = mythtv
  #Jumppoint for LiveTV created in Mythweb
  button = dtv
  config = ^
end

begin
  prog = mythtv
  #Jumppoint for Music created in Mythweb
  button = mp3
  config = F8
end

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

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

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

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

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

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

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

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

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

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

begin
  prog = mythtv
  button = camera
  config = A
end

begin
  prog = mythtv
  button = up
  config = Up
end

begin
  prog = mythtv
  button = chup
  config = Up
  repeat = 2
end

begin
  prog = mythtv
  button = down
  config = Down
end

begin
  prog = mythtv
  button = chdown
  config = Down
  repeat = 2
end

begin
  prog = mythtv
  button = left
  config = Left
end

begin
  prog = mythtv
  button = voldown
  config = Left
  repeat = 2
end

begin
  prog = mythtv
  button = right
  config = Right
end

begin
  prog = mythtv
  button = volup
  config = Right
  repeat = 2
end

begin
  prog = mythtv
  button = replay
  config = Left
end

begin
  prog = mythtv
  button = skip
  config = Right
end

begin
  prog = mythtv
  button = back
  config = Esc
end

# Enter button
begin
  prog = mythtv
  button = ok
  config = Return
end

begin
  prog = mythtv
  button = playpause
  config = Return
end

begin
  prog = mythtv
  button = tv_onoff
  config = Esc
end

begin
  prog = mythtv
  button = power
  config = Esc
end

begin
  prog = mythtv
  button = ch_up
  config = Up
end

begin
  prog = mythtv
  button = ch_down
  config = Down
end

begin
  prog = mythtv
  button = vol_down
  repeat = 3
  config = F10
end

begin
  prog = mythtv
  button = yellow
  repeat = 3
  config = F10
end

begin
  prog = mythtv
  button = vol_up
  repeat = 3
  config = F11
end

begin
  prog = mythtv
  button = blue
  repeat = 3
  config = F11
end

begin
  prog = mythtv
  button = more
  config = I
end

begin
  prog = mythtv
  button = green
  config = I
end

begin
  prog = mythtv
  button = red
  config = D
end

begin
  prog = mythtv
  button = ff
  config = >
  repeat = 2
end

begin
  prog = mythtv
  button = rew
  config = <
  repeat = 2
end

begin
  prog = mythtv
  button = power_onoff
  config = Y
end

begin
  prog = mythtv
  button = live
  config = C
end

########### Start Of TV #############

#Jumppoint for Program Guide created in Mythweb
begin
  prog = mythtv
  button = guide
  config = S
end

begin
  prog = mythtv
  button = epg
  config = S
end

begin
  prog = mythtv
  button = dvd_menu
  config = M
end

begin
  prog = mythtv
  button = menu
  config = M
end

begin
  prog = mythtv
  button = ratio
  config = W
end

begin
  prog = mythtv
  button = rec
  config = R
end

begin
  prog = mythtv
  button = record
  config = R
end

begin
  prog = mythtv
  button = alt_tab
  # Use for forward commercial skip
  config = Z
end

begin
  prog = mythtv
  button = folder
  # Use for Teletext
  config = T
end

########### Start Of Music #############

begin
  # Mute for MythMusic
  prog = mythtv
  button = mute
  config = |
end

begin
  prog = mythtv
  button = DVD_ROOTMENU
  config = M
end

begin
  prog = mythtv
  # Enter button
  button = SETUP
  config = Return
end

begin
  prog = mythtv
  button = A
  config = S
end

begin
  prog = mythtv
  button = B
  config = I
end

begin
  prog = mythtv
  button = C
  config = T
end

begin
  prog = mythtv
  # Change focus for PiP (to change channel in the other window)
  button = MAXAMIZE
  config = B
end

begin
  prog = mythtv
  # Toggle PiP on/off
  button = TV_ON_DEMAND
  config = V
end

begin
  prog = mythtv
  button = BACK
  config = <
end

begin
  prog = mythtv
  button = NEXT
  config = >
end

begin
  prog = mythtv
  button = BACK
  config = Left
end


begin
  prog = mythtv
  button = NEXT
  config = Right
end

begin
  prog = mythtv
  button = RECCORD
  config = R
end

begin
  prog = mythtv
  button = STOP
  config = P
end

begin
  prog = mythtv
  button = PLAY
  config = P
end

begin
  prog = mythtv
  button = PAUSE
  config = P
end

#Page Up/Down
begin
  prog = mythtv
  button = E
  config = PgUp
end

begin
  prog = mythtv
  button = F
  config = PgDown
end

begin
  prog = mythtv
  button = E
  # Use for backwards commercial skip
  config = Q
end

begin
  prog = mythtv
  button = F
  # Use for forward commercial skip
  config = Z
end

#Mplayer

begin
  prog = mplayer
  button = PLAY
  config = pause
end

begin
  prog = mplayer
  button = PAUSE
  config = pause
end

begin
  prog = mplayer
  button = STOP
  config = pause
end

begin
  prog = mplayer
  button = POWER
  config = quit
end

begin
  prog = mplayer
  button = D
  config = quit
end

begin
  prog = mplayer
  button = MOUSE_RIGHT_BTN
  config = quit
end

begin
  prog = mplayer
  button = MUTE
  config = mute
end

begin
  prog = mplayer
  button = E
  repeat = 6
  config = seek -10
end

begin
  prog = mplayer
  button = F
  repeat = 6
  config = seek 10
end

begin
  prog = mplayer
  button = Left
  repeat = 6
  config = seek -70
end

begin
  prog = mplayer
  button = chup
  repeat = 6
  config = seek -70
end

begin
  prog = mplayer
  button = Right
  repeat = 6
  config = seek 70
end

begin
  prog = mplayer
  button = chdown
  repeat = 6
  config = seek 70
end

begin
  prog = mplayer
  button = ch_up
  config = seek 10
end

begin
  prog = mplayer
  button = volup
  config = seek 10
end

begin
  prog = mplayer
  button = ch_down
  config = seek -10
end

begin
  prog = mplayer
  button = voldown
  config = seek -10
end

begin
  prog = mplayer
  button = vol_down
  repeat = 6
  config = volume -1
end

begin
  prog = mplayer
  button = yellow
  repeat = 6
  config = volume -1
end

begin
  prog = mplayer
  button = vol_up
  repeat = 6
  config = volume 1
end

begin
  prog = mplayer
  button = blue
  repeat = 6
  config = volume 1
end

begin
  prog = mplayer
  button = 1
  config = 1
  repeat = 5
end

begin
  prog = mplayer
  button = 2
  config = 2
  repeat = 5
end

begin
  prog = mplayer
  button = 3
  config = 3
  repeat = 5
end

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


begin
  prog = mplayer
  button = 5
  config = 5
  repeat = 5
end

begin
  prog = mplayer
  button = 6
  config = 6
  repeat = 5
end

begin
  prog = mplayer
  button = 7
  config = 7
  repeat = 5
end

begin
  prog = mplayer
  button = 8
  config = 8
  repeat = 5
end

begin
  prog = mplayer
  button = 9
  config = 9
  repeat = 5
end

begin
  prog = mplayer
  button = 0
  config = 0
  repeat = 5
end


#Xine

begin
  prog = xine
  button = PLAY
  config = Play
end

begin
  prog = xine
  button = PAUSE
  config = PAUSE
end

begin
  prog = xine
  button = STOP
  config = Stop
end

begin
  prog = xine
  button = POWER
  config = Quit
end

begin
  prog = xine
  button = D
  config = quit
end

begin
  prog = xine
  button = MOUSE_RIGHT_BTN
  config = quit
end

begin
  prog = xine
  button = ARROW_UP
  repeat = 4
  config = EventUp
end

begin
  prog = xine
  button = ARROW_DOWN
  repeat = 4
  config = EventDown
end

begin
  prog = xine
  button = ARROW_LEFT
  repeat = 4
  config = EventLeft
end

begin
  prog = xine
  button = ARROW_RIGHT
  repeat = 4
  config = EventRight
end

begin
  prog = xine
  button = OK
  repeat = 0
  config = EventSelect
end

begin
  prog = xine
  button = MOUSE_UP
  repeat = 4
  config = EventUp
end

begin
  prog = xine
  button = MOUSE_DOWN
  repeat = 4
  config = EventDown
end

begin
  prog = xine
  button = MOUSE_LEFT
  repeat = 4
  config = EventLeft
end

begin
  prog = xine
  button = MOUSE_RIGHT
  repeat = 4
  config = EventRight
end

begin
  prog = xine
  button = MOUSE_LEFT_BTN
  repeat = 0
  config = EventSelect
end

begin
  prog = xine
  button = DVD_ROOTMENU
  repeat = 0
  config = Menu
end

#vol down
begin
  prog = xine
  button = VOL_DOWN
  repeat = 1
  config = Volume-
end

begin
  prog = xine
  button = yellow
  repeat = 1
  config = Volume-
end

#vol up
begin
  prog = xine
  button = VOL_UP
  repeat = 1
  config = Volume+
end

begin
  prog = xine
  button = blue
  repeat = 1
  config = Volume+
end

begin
  prog = xine
  button = TV_ON_DEMAND
  repeat = 1
  config = ZoomIn
end

begin
  prog = xine
  button = MAXAMIZE
  repeat = 1
  config = ZoomOut
end

#skip chapter forward
begin
  prog = xine
  button = NEXT
  repeat = 1
  config = EventNext
end

#skip chapter backward
begin
  prog = xine
  button = BACK
  repeat = 1
  config = EventPrior
end

begin
  prog = xine
  button = F
  repeat = 2
  config = SeekRelative+45
end

begin
  prog = xine
  button = E
  repeat = 2
  config = SeekRelative-45
end
