#
# Vink native LIRC config file for
# PINNACLE PCTV Remote
#
# 10/08/2007
#


###########################MYTHTV#################################
#mythtv
# Channel Up
begin
prog = mythtv
button = ChannelUp
repeat = 3
config = Up
end

# Channel Down
begin
prog = mythtv
button = ChannelDown
repeat = 3
config = Down
end

# Up
begin
prog = mythtv
button = Up
repeat = 3
config = Up
end

# Down
begin
prog = mythtv
button = Down
repeat = 3
config = Down
end

# OK/Select
begin
prog = mythtv
button = Select
repeat = 3
config = Space
end

# Play
begin
prog = mythtv
button = Play
repeat = 3
config = Return
end

# Stop
begin
prog = mythtv
button = Stop
repeat = 3
config = I
end

# Power Off/Exit
begin
prog = mythtv
button = power
repeat = 3
config = Esc
end

# A=Red means stop!
begin
prog = mythtv
button = Red
repeat = 3
config = Esc
end

# Pause
begin
prog = mythtv
button = Pause
repeat = 3
config = P
end

# Scroll up
begin
prog = mythtv
button = VolumeUp
repeat = 3
config = F11
end

# Scroll down
begin
prog = mythtv
button = VolumeDown
repeat = 3
config = F10
end

# Mute
begin
prog = mythtv
button = Mute
repeat = 3
config = F9
end

# Fast forward (30 sec default)
begin
prog = mythtv
button = Rewind
repeat = 3
config = Left
end

# Rewind (10 sec default)
begin
prog = mythtv
button = Forward
repeat = 3
config = Right
end

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

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

# Record
begin
prog = mythtv
button = Record
repeat = 3
config = R
end

# Delete
begin
prog = mythtv
button = Back
repeat = 3
config = D
end

# OSD browse
begin
prog = mythtv
button = Green
repeat = 3
config = O
end

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

# Scroll up
begin
prog = mythtv
button = Right
repeat = 3
config = Right
end

# Scroll down
begin
prog = mythtv
button = Left
repeat = 3
config = Left
end

# Bring up OSD info
begin
prog = mythtv
button = Text
repeat = 3
config = I
end

# Change display aspect ratio
begin
prog = mythtv
button = Zoom
repeat = 3
config = W
end

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

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

# Numbers 0-9

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

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

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

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

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

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

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

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

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

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

########################
#

begin
    prog = irexec
    button = tvtime
    config = /usr/bin/tvtime &
  end
############################XMMS###################################
#xmms
begin xmms
  begin
    prog = xmms
    button = Play
    config = PLAY
  end
  begin
    prog = xmms
    button = Pause
    config = PAUSE
  end
  begin
    prog = xmms
    button = Stop
    config = STOP
  end
  begin
    prog = xmms
    button = Power
    config = QUIT
    flags = mode
  end
  begin
    prog = xmms
    button = ChannelUp
    config = NEXT
  end
  begin
    prog = xmms
    button = ChannelDown
    config = PREV
  end
  begin
    prog = xmms
    button = Forward
    config = FWD 3
    repeat = 32
  end
  begin
    prog = xmms
    button = Back
    config = BWD 3
    repeat = 32
  end
  begin
    prog = xmms
    button = VolumeUp
    config = VOL_UP 10
    repeat = 2
  end
  begin
    prog = xmms
    button = VolumeDown
    config = VOL_DOWN 10
    repeat = 2
  end
  begin
    prog = xmms
    button = 1
    config = ONE
  end
  begin
    prog = xmms
    button = 2
    config = TWO
  end
  begin
    prog = xmms
    button = 3
    config = THREE
  end
  begin
    prog = xmms
    button = 4
    config = FOUR
  end
  begin
    prog = xmms
    button = 5
    config = FIVE
  end
  begin
    prog = xmms
    button = 6
    config = SIX
  end
  begin
    prog = xmms
    button = 7
    config = SEVEN
  end
  begin
    prog = xmms
    button = 8
    config = EIGHT
  end
  begin
    prog = xmms
    button = 9
    config = NINE
  end
  begin
    prog = xmms
    button = 0
    config = ZERO
  end
  begin
    prog = xmms
    button = Text
    config = SETPOS
  end
end xmms

############################XawTV###################################
#xawtv
begin
   prog = xawtv
   button = Zoom
   config = fullscreen
end
begin
   prog = xawtv
   button = Power
   config = quit
end


############################MPLAYER###################################
#MPlayer
begin
   prog = mplayer
   button = Power
   config = quit
end
begin
   prog = mplayer
   button = Menu
   config = osd
end

begin
   prog = mplayer
   button = Rewind
   config = seek -10
   repeat = 0
end

begin
   prog = mplayer
   button = Forward
   config = seek +10
   repeat = 0
end

begin
   prog = mplayer
   button = Previous
   config = seek -60
   repeat = 0
end

begin
   prog = mplayer
   button = Next
   config = seek +60
   repeat = 0
end

begin
    prog = mplayer
    button = Pause
    config = pause
end

begin
    prog = mplayer
    button = Play
    config = pause
end

begin
   prog = mplayer
   button = VolumeUp
   config = volume +24
   repeat = 32
end

begin
   prog = mplayer
   button = VolumeDown
   config = volume -24
   repeat = 32
end

begin
   prog=mplayer
   button=Mute
   config=mute
end

# Toggle full-screen
begin
   prog = mplayer
   button = Zoom
   repeat = 32
   config = vo_fullscreen
end

###################XINE######################################
begin
   prog =xine
   button=2
   config=EventUp
   repeat=32
end

begin
   prog=xine
   button=8
   config=EventDown
   repeat=32
end

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

begin
   prog=xine
   button=6
   config=EventRight
   repeat=32
end

begin
   prog=xine
   button=5
   config=EventSelect
   repeat=32
end

begin
   prog=xine
   button=1
   config=SpeedSlower
   repeat=32
end

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

begin
   prog=xine
   button=Text
   config=Menu
   repeat=32
end

begin
   prog=xine
   button=Red
   config=RootMenu
   repeat=32
end

begin
   prog=xine
   button=ChannelDown
   config=EventPrior
   repeat=32
end

begin
   prog=xine
   button=ChannelUp
   config=EventNext
   repeat=32
end

begin
   prog=xine
   button=Power
   config=Quit
   repeat=32
end

begin
   prog=xine
   button=VolumeUp
   config=Volume+
   repeat=16
end

begin
   prog=xine
   button=VolumeDown
   config=Volume-
   repeat=16
end

begin
   prog=xine
   button=Zoom
   config=ToggleFullscreen
   repeat=32
end

begin
   prog=xine
   button=Play
   config=Play
   repeat=32
end

begin
   prog=xine
   button=Pause
   config=Pause
   repeat=32
end

begin
   prog=xine
   button=Forward
   config=SeekRelative+15
   repeat=32
end

begin
   prog=xine
   button=Back
   config=SeekRelative-15
   repeat=32
end

begin
   prog=xine
   button=Mute
   config=Mute
   repeat=32
end


###################VLC######################################
# See example.lircrc in the VLC sources
begin
  prog = vlc
  button = Play
  config = key-play
   repeat=32
end

begin
  prog = vlc
  button = Pause
  config = key-pause
   repeat=32
end

begin
  prog = vlc
  button = Stop
  config = key-stop
   repeat=32
end

begin
  prog = vlc
  button = Power
  config = key-quit
   repeat=32
end

begin
  prog = vlc
  button = ChannelUp
  config = key-next
   repeat=32
end

begin
  prog = vlc
  button = ChannelDown
  config = key-prev
   repeat=32
end

begin
  prog = vlc
  button = Zoom
  config = key-fullscreen
   repeat=32
end

begin
  prog = vlc
  button = Back
  config = key-slower
   repeat=32
end

begin
  prog = vlc
  button = Forward
  config = key-faster
   repeat=32
end

#Audio controls
begin
  prog = vlc
  button = VolumeDown
  config = key-vol-down
   repeat=0
end

begin
  prog = vlc
  button = VolumeUp
  config = key-vol-up
   repeat=0
end

begin
  prog = vlc
  button = Mute
  config = key-vol-mute
   repeat=32
end

#For dvd navigation
begin
  prog = vlc
  button = 4
  config = key-nav-left
end

begin
  prog = vlc
  button = 8
  config = key-nav-down
end

begin
  prog = vlc
  button = 2
  config = key-nav-up
end

begin
  prog = vlc
  button = 6
  config = key-nav-right
end

begin
  prog = vlc
  button = 5
  config = key-nav-activate
end

begin
  prog = vlc
  button = Text
  config = key-disc-menu
end
begin
  prog = vlc
  button = Pause
  config = key-play
end
begin
  prog = vlc
  button = Stop
  config = key-pause
end
#Audio controls
begin
  prog = vlc
  button = VolumeDown
  config = key-vol-down
  repeat = 1
end
begin
  prog = vlc
  button = VolumeUp
  config = key-vol-up
  repeat = 1
end
begin
  prog = vlc
  button = SOMEBUTTON
  config = key-audio-track
end
begin
  prog = vlc
  button = Mute
  config = key-vol-mute
end

begin
  prog   = gxine
  button = Power
  repeat = 0
  config = exit();
end

begin
  prog   = gxine
  button = 0
  repeat = 0
  config = playlist_play(0);
end

begin
  prog   = gxine
  button = 1
  repeat = 0
  config = playlist_play(1);
end

begin
  prog   = gxine
  button = 2
  repeat = 0
  config = playlist_play(2);
end

begin
  prog   = gxine
  button = 3
  repeat = 0
  config = playlist_play(3);
end

begin
  prog   = gxine
  button = 4
  repeat = 0
  config = playlist_play(4);
end

begin
  prog   = gxine
  button = 5
  repeat = 0
  config = playlist_play(5);
end

begin
  prog   = gxine
  button = 6
  repeat = 0
  config = playlist_play(6);
end

begin
  prog   = gxine
  button = 7
  repeat = 0
  config = playlist_play(7);
end

begin
  prog   = gxine
  button = 8
  repeat = 0
  config = playlist_play(8);
end

begin
  prog   = gxine
  button = 9
  repeat = 0
  config = playlist_play(9);
end

begin
  prog   = gxine
  button = VolumeUp
  repeat = 0
  config = set_volume(get_volume()+5);
end

begin
  prog   = gxine
  button = VolumeDown
  repeat = 0
  config = set_volume(get_volume()-5);
end

begin
  prog   = gxine
  button = Left
  repeat = 0
  config = input_left();
end

begin
  prog   = gxine
  button = Right
  repeat = 0
  config = input_right();
end

begin
  prog   = gxine
  button = Down
  repeat = 0
  config = input_down();
end

begin
  prog   = gxine
  button = Up
  repeat = 0
  config = input_up();
end

begin
  prog   = gxine
  button = Previous
  repeat = 0
  config = playlist_play(playlist_get_item()-1);
end

begin
  prog   = gxine
  button = Next
  repeat = 0
  config = playlist_play(playlist_get_item()+1);
end

begin
  prog   = gxine
  button = Select
  repeat = 0
  config = input_select();
end

begin
  prog   = gxine
  button = Menu
  repeat = 0
  config = input_menu1();
end

begin
  prog   = gxine
  button = Zoom
  repeat = 0
  config = set_fullscreen();
end

begin
  prog   = gxine
  button = Pause
  repeat = 0
  config = pause();
end

begin
  prog   = gxine
  button = Play
  repeat = 0
  config = play();
end

#begin
#  prog   = gxine
#  button = slow
#  repeat = 0
#  config = set_speed(get_speed()-1);
#end

#begin
#  prog   = gxine
#  button = c
#  repeat = 0
#  config = set_speed(4);
#end

begin
  prog   = gxine
  button = Stop
  repeat = 0
  config = stop();
end

