# ~/.mythtv/lircrc
#
# LIRC config file for Technisat TTS35AI USB Remote
#
#

# Mythtv configuration

# Up Arrow
begin
  prog = mythtv
  button = UP
  repeat = 0
  config = Up
end

# Down Arrow
begin
  prog = mythtv
  button = DOWN
  repeat = 0
  config = Down
end

# Left Arrow
begin
  prog = mythtv
  button = LEFT
  repeat = 0
  config = Left
end

# Right Arrow
begin
  prog = mythtv
  button = RIGHT
  repeat = 0
  config = Right
end

# Mute
begin
  prog = mythtv
  button = MUTE
  repeat = 0
  config = F9
end

# 1
begin
  prog = mythtv
  button = 1
  repeat = 0
  config = 1
end

# 2
begin
  prog = mythtv
  button = 2
  repeat = 0
  config = 2
end

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

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

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

# 6
begin
  prog = mythtv
  button = 6
  repeat = 0
  config = 6
end

# 7
begin
  prog = mythtv
  button = 7
  repeat = 0
  config = 7
end

# 8
begin
  prog = mythtv
  button = 8
  repeat = 0
  config = 8
end

# 9
begin
  prog = mythtv
  button = 9
  repeat = 0
  config = 9
end

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

# -/-- jump backward
begin
  prog = mythtv
  button = -/--
  repeat = 0
  config = <
end

# A/B jump forward
begin
  prog = mythtv
  button = A/B
  repeat = 0
  config = >
end

# Red button - Escape
begin
  prog = mythtv
  button = RED
  repeat = 1
  config = Esc
end

# Green button - Browse
begin
  prog = mythtv
  button = GREEN
  repeat = 0
  config = O
end

# Green button - Jump to Previous Commercial Marker
begin
  prog = mythtv
  button = GREEN
  repeat = 0
  config = Q
end

# Blue button - jump to Next Commercial marker / Load Comercial Marking List
begin
  prog = mythtv
  button = BLUE
  repeat = 0
  config = Z
end

# OK
begin
  prog = mythtv
  button = OK
  repeat = 0
  config = Space
end

# SFI - Switch to channel in EPG
begin
  prog = mythtv
  button = SFI
  repeat = 0
  config = X
end

# Exit - Pause/Play
begin
  prog = mythtv
  button = EXIT
  repeat = 0
  config = p
end

# INFO - Info on program/show/...
begin
  prog = mythtv
  button = INFO
  repeat = 0
  config = I
end

# TV/RADIO - Recording on/off
begin
  prog = mythtv
  button = TV/RADIO
  repeat = 0
  config = R
end

# MENU - Menu/EPG
begin
  prog = mythtv
  button = MENU
  repeat = 0
  config = M
end

# TXT - PageUp, Jump forward
begin
  prog = mythtv
  button = TXT
  repeat = 0
  config = PgUp
end

# STOP - PageDown, Jump backward
begin
  prog = mythtv
  button = STOP
  repeat = 0
  config = PgDown
end

# EXT - Delete
begin
  prog = mythtv
  button = EXT
  repeat = 0
  config = D
end

###############################################
#
# Mythwelcome

# Up Arrow
begin
  prog = mythwelcome
  button = UP
  repeat = 0
  config = Up
end

# Down Arrow
begin
  prog = mythwelcome
  button = DOWN
  repeat = 0
  config = Down
end

# Left Arrow
begin
  prog = mythwelcome
  button = LEFT
  repeat = 0
  config = Left
end

# Right Arrow
begin
  prog = mythwelcome
  button = RIGHT
  repeat = 0
  config = Right
end

# MENU - Menu
begin
  prog = mythwelcome
  button = MENU
  repeat = 0
  config = M
end

# INFO - Info on settings
begin
  prog = mythwelcome
  button = INFO
  repeat = 0
  config = I
end


#####################################################
#
# mplayer
#

# Up Arrow - Next Chapter
begin
  prog = mplayer
  button = UP
  repeat = 0
  config = seek_chapter +1
end

# Down Arrow
begin
  prog = mplayer
  button = DOWN
  repeat = 0
  config = seek_chapter -1
end

# Left Arrow
begin
  prog = mplayer
  button = LEFT
  repeat = 0
  config = seek -10
end

# Right Arrow
begin
  prog = mplayer
  button = RIGHT
  repeat = 0
  config = seek +10
end

# Mute
begin
  prog = mplayer
  button = MUTE
  repeat = 0
  config = mute
end

# 1 UNIMPLEMENTED
begin
  prog = mplayer
  button = 1
  repeat = 0
  config = 1
end

# 2 UNIMPLEMENTED
begin
  prog = mplayer
  button = 2
  repeat = 0
  config = 2
end

# 3 UNIMPLEMENTED
begin
  prog = mplayer
  button = 3
  repeat = 0
  config = 3
end

# 4 UNIMPLEMENTED
begin
  prog = mplayer
  button = 4
  repeat = 0
  config = 4
end

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

# 6 UNIMPLEMENTED
begin
  prog = mplayer
  button = 6
  repeat = 0
  config = 6
end

# 7 UNIMPLEMENTED
begin
  prog = mplayer
  button = 7
  repeat = 0
  config = 7
end

# 8 UNIMPLEMENTED
begin
  prog = mplayer
  button = 8
  repeat = 0
  config = 8
end

# 9  UNIMPLEMENTED
begin
  prog = mplayer
  button = 9
  repeat = 0
  config = 9
end

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

# -/-- jump backward
begin
  prog = mplayer
  button = -/--
  repeat = 0
  config = seek -100
end

# A/B jump forward
begin
  prog = mplayer
  button = A/B
  repeat = 0
  config = seek +100
end

# Red button - Escape/quit
begin
  prog = mplayer
  button = RED
  repeat = 1
  config = quit
end

# Green button - Browse UNIMPLEMENTED
begin
  prog = mplayer
  button = GREEN
  repeat = 0
  config = 
end

# Green button - Jump to Previous Commercial Marker UNIMPLEMENTED
begin
  prog = mplayer
  button = GREEN
  repeat = 0
  config = Q
end

# Blue button - jump to Next Commercial marker / Load Comercial Marking List UNIMPLEMENTED
begin
  prog = mplayer
  button = BLUE
  repeat = 0
  config = Z
end

# OK UNIMPLEMENTED
begin
  prog = mplayer
  button = OK
  repeat = 0
  config = Enter
end

# SFI - Switch to channel in EPG UNIMPLEMENTED
begin
  prog = mplayer
  button = SFI
  repeat = 0
  config = X
end

# Exit - Pause/Play
begin
  prog = mplayer
  button = EXIT
  repeat = 0
  config = pause
end

# INFO - Info on program/show/...
begin
  prog = mplayer
  button = INFO
  repeat = 0
  config = get_time_pos        
  config = get_time_length     
  config = get_meta_title
  config = get_meta_artist
end

# TV/RADIO - Recording on/off UNIMPLEMENTED
begin
  prog = mplayer
  button = TV/RADIO
  repeat = 0
  config = R
end

# MENU - Menu/EPG
begin
  prog = mplayer
  button = MENU
  repeat = 0
  config = menu
end

# TXT - PageUp, Jump forward
begin
  prog = mplayer
  button = TXT
  repeat = 0
  config = seek +300
end

# STOP - PageDown, Jump backward
begin
  prog = mplayer
  button = STOP
  repeat = 0
  config = seek -300
end

# EXT - Delete UNIMPLEMENTED
begin
  prog = mplayer
  button = EXT
  repeat = 0
  config = D
end
