# MythTV LIRC config file for the gray Hauppauge remote
# Sticker on the inside of battery compartment
#     A415-HPG
#     1004  032400
#
# /home/mythtv/.mythtv/lircrc
#
#
### RESET THE MYTH BOX or REBOOT IT
# 1 click is reset front end, 2 clicks is reboot
#
begin
   prog = irexec
   button = Power
   config = /home/mythtv/scripts/mypower.sh &
end
#
### MYTHTV SETTINGS FOR IT'S CONTROL
#
# Program Guide
begin
   remote = grayHauppauge
   prog = mythtv
   button = green
   config = F2
end
#
# TV Recording Playback
begin
   remote = grayHauppauge
   prog = mythtv
   button = Videos
   config = F3
end
#
# Live TV
begin
   remote = grayHauppauge
   prog = mythtv
   button = TV
   config = F4
end
#
# MythWeather
begin
   remote = grayHauppauge
   prog = mythtv
   button = Go
   config = F7
end
#
# MythGame
begin
   remote = grayHauppauge
   prog = mythtv
   button = Green
   config = F5
end
#
# MythMusic
begin
   remote = grayHauppauge
   prog = mythtv
   button = Music
   config = F6
end
#
# Previous Channel
begin
   remote = grayHauppauge
   prog = mythtv
   button = Prev-Channel
   config = H
end
#
# Channel Up
begin
   remote = grayHauppauge
   prog = mythtv
   button = Channel-UP
   repeat = 3
   config = Up
end

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

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

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

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

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

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

# Red means stop!
#begin
#prog = mythtv
#button = red
#config = Esc
#end

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

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

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

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

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

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




# Fast forward (while viewing)
begin
prog = mythtv
button = Forward
repeat = 3
config = >
end

# Rewind (while viewing)
begin
prog = mythtv
button = Rewind
repeat = 3
config = <
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 = red
repeat = 3
config = D
end

# OSD browse

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

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

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

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

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

# Change display aspect ratio
#begin
#prog = mythtv
#button = FULL
#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

#
### MPlayer lirc setup
#
# Show OSD
begin
prog = mplayer
button = Menu
repeat = 3
config = osd
end

# Pause playback
begin
prog = mplayer
button = Pause
repeat = 3
config = pause
end

# Skip ahead a minute if playing
# If paused, resume playing
begin
prog = mplayer
button = Play
repeat = 3
config = seek +1
end

# Stop playback and exit
begin
prog = mplayer
button = Stop
repeat = 3
config = quit
end

# Mute
begin
prog = mplayer
button = Mute
repeat = 3
config = mute
end

# Seek back 10 seconds
begin
prog = mplayer
button = Rewind
repeat = 3
config = seek -10
end

# Seek forward 30 seconds
begin
prog = mplayer
button = Forward
repeat = 3
config = seek +30
end

# Quit
begin
prog = mplayer
button = Back-Exit
repeat = 3
config = quit
end

# Seek forward 10 minutes
begin
prog = mplayer
button = Next
repeat = 3
config = seek +600
end

# Seek backward 10 minutes
begin
prog = mplayer
button = Previous
repeat = 3
config = seek -600
end

# Toggle full-screen
#begin
#prog = mplayer
#button = FULL
#repeat = 3
#config = vo_fullscreen
#end
#
#
### XINE CONFIGURATION
#
##
# xine key bindings.
# Automatically generated by xine-ui version 0.99.2.
##

# start playback
begin
   button = Play
   prog   = xine
   repeat = 3
   config = Play
end

# playback pause toggle
begin
   button = Pause
   prog   = xine
   repeat = 3
   config = Pause
end

# stop playback
begin
   button = Stop
   prog   = xine
   repeat = 3
   config = Stop
end

# take a snapshot
begin
   button = Record
   prog   = xine
   repeat = 3
   config = Snapshot
end

# eject the current medium
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = Eject
end

# set position to -60 seconds in current stream
begin
   button = Previous
   prog   = xine
   repeat = 3
   config = SeekRelative-60
end

# set position to +60 seconds in current stream
begin
   button = Next
   prog   = xine
   repeat = 3
   config = SeekRelative+60
end

# set position to -30 seconds in current stream
begin
   button = Rewind
   prog   = xine
   repeat = 3
   config = SeekRelative-30
end

# set position to +30 seconds in current stream
begin
   button = Forward
   prog   = xine
   repeat = 3
   config = SeekRelative+30
end

# set position to +7 and -7 seconds in current stream
begin
   button = 1
   prog   = xine
   repeat = 3
   config = SeekRelative-7
end

begin
   button = 2
   prog   = xine
   repeat = 3
   config = SeekRelative+7
end

begin
   button = 4
   prog   = xine
        repeat = 3
   config = SetPosition40%
end

begin
   button = 5
   prog   = xine
   repeat = 3
   config = SetPosition70%
end

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

begin
   button = DOWN
   prog   = xine
   repeat = 3
   config = SpeedSlower
end

begin
   button = OK
   prog   = xine
   repeat = 3
   config = SpeedReset
end

# increment audio volume
begin
   button = Volume-UP
   prog   = xine
   repeat = 3
   config = Volume+
end

# decrement audio volume
begin
   button = Volume-DOWN
   prog   = xine
   repeat = 3
   config = Volume-
end

# audio muting toggle
begin
   button = Mute
   prog   = xine
   repeat = 3
   config = Mute
end

# set video output window to 100%
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = Window100
end

# set video output window to 200%
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = Window200
end

# zoom in
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = ZoomIn
end

# zoom out
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = ZoomOut
end

# fullscreen toggle
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = ToggleFullscreen
end

# Xinerama fullscreen toggle
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = ToggleXineramaFullscr
end

# jump to Title Menu
begin
   button = Go
   prog   = xine
   repeat = 3
   config = TitleMenu
end

# jump to Root Menu
begin
   remote = xxxxx
   button = xxxxx
   prog   = xine
   repeat = 3
   config = RootMenu
end

# menu navigate up
begin
   button = xxxx
   prog   = xine
   repeat = 3
   config = EventUp
end

# menu navigate down
begin
   button = xxxx
   prog   = xine
   repeat = 3
   config = EventDown
end

# menu navigate left
begin
   button = LEFT
   prog   = xine
   repeat = 3
   config = EventLeft
end

# menu navigate right
begin
   button = RIGHT
   prog   = xine
   repeat = 3
   config = EventRight
end

# visibility toggle of stream info window
begin
   button = Guide
   prog   = xine
   repeat = 3
   config = StreamInfosShow
end

# display stream information using OSD
begin
   button = Menu
   prog   = xine
   repeat = 3
   config = OSDStreamInfos
end



# increase brightness by 10
begin
   button = Channel-UP
   prog   = xine
   repeat = 3
   config = BrightnessControl+
end

# decrease brightness by 10
begin
   button = Channel-DOWN
   prog   = xine
   repeat = 3
   config = BrightnessControl-
end

# quit the program
begin
   button = Back-Exit
   prog   = xine
   repeat = 3
   config = Quit
end

##
# End of xine key bindings.
## 
