# ~/.mythtv/lircrc
#
# MythTV native LIRC config file for
# the new grey Hauppauge remote
#
# Modified from Jarod Wilson's which came from Jeff Campbell's
# By Brad Templeton
# Modified to use the Firefly's Unique Buttons by Ryan Schmitz
# Updated by RacerX for Linhes 8.0

  # Remote 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

  # Escape/Back/Exit
begin
  prog = mythtv
  button = BACK
  config = Esc
end

  # OK/Select
begin
  prog = mythtv
  button = ENT
  config = pace
end

  # Volumn Up
begin
  prog = mythtv
  button = VOL+
  repeat = 3
  config = F11
end

  # Volumn Down
begin
  prog = mythtv
  button = VOL-
  repeat = 3
  config = F10
end

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

  # Firefly
begin
  prog = mythtv
  button = FIREFLY
  repeat = 3
  config = F8
end

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

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

  # Info
begin
  prog = mythtv
  button = INFO
  repeat = 3
  config = I
end

  # change tuners
begin
  prog = mythtv
  button = OPTION
  repeat = 3
  config = Y
end

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

  # Left
begin
  prog = mythtv
  button = LEFT
  repeat = 3
  config = Left
end

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

  # Right
begin
  prog = mythtv
  button = RIGHT
  repeat = 3
  config = Right
end

  # Ok/Select
begin
  prog = mythtv
  button = OK
  config = space
end

  # Menu
begin
  prog = mythtv
  button = MENU
  repeat = 3
  config = M
end

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

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

  # Play
begin
  prog = mythtv
  button = PLAY
  config = Return
end

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

  # Rewind
begin
  prog = mythtv
  button = FWD
  repeat = 3
  config = PgDown
end

  # Fast Forward
begin
  prog = mythtv
  button = REW
  repeat = 3
  config = PgUp
end

  # Skip Backward
begin
  prog = mythtv
  button = PREV
  repeat = 3
  config = home
end

  # Skip Forward
begin
  prog = mythtv
  button = NEXT
  repeat = 3
  config = End
end

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

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

  # Decrease Playback Speed
begin
  prog = mythtv
  button = B
  repeat = 3
  config = J
end

  # Double Playback Speed
begin
  prog = mythtv
  button = C
  repeat = 3
  config = J
end

  # Time Stretch
begin
  prog = mythtv
  button = D
  repeat = 3
  config = Y
end

  ### Jump Points need to match config in mythweb keybindings

  # Myth Music
begin
  prog = mythtv
  button = Music
  repeat = 3
  config = F4
end

  # Live TV
begin
  prog = mythtv
  button = TV
  repeat = 3
  config = F5
end

  # Myth Video Gallery
begin
  prog = mythtv
  button = VIDEO
  repeat = 3
  config = F2
end

  # Myth Image Gallery
begin
  prog = mythtv
  button = PHOTOS
  repeat = 3
  config = F
end


begin
  prog = irexec
  button = HELP
  config = env DISPLAY=:0 xdotool key alt+h
  flags = quit
end
