# ~/.mythtv/lircrc
# 
# MythTV native LIRC config file for
# the ATI-Wonder Remote
# using lirc_atiusb driver
# 

begin
#Jumppoint for Program Guide created in Mythweb
    prog = mythtv
    button = tv
    config = ! 
    repeat = 5
end

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

begin
    prog = mythtv
#Jumppoint for MythWeater created in Mythweb
    button = web
    config = #
    repeat = 5
end

begin
    prog = mythtv
#Jumppoint for MythVideo created in Mythweb
    button = media_library
    config = $
    repeat = 5
end

begin
    prog = mythtv
#Jumppoint for MythWeater created in Mythweb
    button = HAND
    config = %
    repeat = 5
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 = mouse-up
    config = Up
    repeat = 5
end

begin
    prog = mythtv
    button = mouse-down
    config = Down
    repeat = 5
end

begin
    prog = mythtv
    button = mouse-left
    config = Left
    repeat = 5
end

begin
    prog = mythtv
    button = mouse-right
    config = Right
    repeat = 5
end

begin
    prog = mythtv
    button = mouse-button-right
    config = Esc
    repeat = 5
end

begin
    prog = mythtv
# Enter button
    button = mouse-button-left
    config = Return
    repeat = 5
end

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

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

begin
    prog = mythtv
    button = cursor-up
    config = Up
    repeat = 5
end

begin
    prog = mythtv
    button = cursor-down
    config = Down
    repeat = 5
end

begin
    prog = mythtv
    button = cursor-left
    config = Left
    repeat = 5
end

begin
    prog = mythtv
    button = cursor-right
    config = Right
    repeat = 5
end

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

begin
prog = mythtv
button = chan-up
config = Up
    repeat = 5
end

begin
prog = mythtv
button = chan-down
config = Down
    repeat = 5
end

begin
  prog = mythtv
  button = vol-down
  repeat = 3
  config = F10  
end

begin
  prog = mythtv
  button = vol-up
  repeat = 3
  config = F11  
end
begin
    prog = mythtv
    button = mute
    config = F9  
    repeat = 5
end

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

begin
    prog = mythtv
    button = dvd-root_menu
    config = M  
    repeat = 5
end

begin
    prog = mythtv
# Enter button
    button = launch_setup
    config = Return
    repeat = 5
end


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

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

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

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

begin
prog = mythtv
# Toggle PiP on/off
button = tv_on_demand
config = V
    repeat = 5
end

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


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

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

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

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

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

begin
prog = mythtv
button = e
# Use for backwards commercial skip
config = Q
    repeat = 5
end

begin
prog = mythtv
button = f
# Use for forward commercial skip
config = Z
    repeat = 5
end

#Mplayer

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

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

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

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

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

begin
prog = mplayer
button = mouse-button-right
config = quit
    repeat = 5
end

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

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

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

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

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

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

begin
prog = mplayer
button = vol-up
repeat = 6
config = volume 1
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-button-right
config = quit
end

begin
prog = xine
button = cursor-up
repeat = 4
config = EventUp
end

begin
prog = xine
button = cursor-down
repeat = 4
config = EventDown
end

begin
prog = xine
button = cursor-left
repeat = 4
config = EventLeft
end

begin
prog = xine
button = corsor-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-button-left
repeat = 0
config = EventSelect
end

begin
prog = xine
button = dvd-root_menu
repeat = 0
config = Menu
end

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

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

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

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

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

#skip chapter backward
begin
prog = xine
button = rewind
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 





