# /etc/lircrc
# ln ~mythtv/.mythtv/lircrc
#
# MythTV native LIRC config file for
# Hauppage Nova-T-500 PCI Dual Tuners DVB-T
# Snowboard shape remote
# Silver on top Black underneath
# 45 buttons
#
# Originally 
# By Jarod Wilson, 2003/12/21
# Amalgamated from Jeff Campbell's .lircrc



################## MythTV Control ######################
### http://www.mythtv.org/wiki/index.php/Keybindings ###

#	Remote Button
##	MythTV function


#	Go
##	Go to home page
begin
prog = mythtv
button = Go
config = ALT+H
end

#	Power
##	Turns monitor in Standby
#begin
#prog = irexec
#button = Power
#config = sudo vbetool dpms on ; sudo vbetool dpms off
#end

#	TV
##	Go to Watch TV
begin
prog = mythtv
button = TV
config = ALT+T
end

#	Videos
##	Go to MythVideo
begin
prog = mythtv
button = Videos
config = ALT+V
end

#	Music
##	Go to MythMusic
begin
prog = mythtv
button = Music
config = ALT+M
end

#	Pictures
##	Go to MythGallery
begin
prog = mythtv
button = Pictures
config = ALT+P
end

#	Guide
##	display EPG
begin
prog = mythtv
button = Guide
config = s
end

#	Radio



#	ArrowUp
##	Up
begin
prog = mythtv
button = ArrowUp
config = Up
end

#	ArrowLeft
##	Left
begin
prog = mythtv
button = ArrowLeft
config = Left
end

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

#	ArrowRight
##	Right
begin
prog = mythtv
button = ArrowRight
config = Right
end

#	ArrowDown
##	Down
begin
prog = mythtv
button = ArrowDown
config = Down
end

#	BackExit
##	Exit/go back/cancel
begin
prog = mythtv
button = BackExit
config = Esc
end

#	Menu
##	Menu
begin
prog = mythtv
button = Menu
config = m
end

#	VolumeUp
##	Volume Up
begin
prog = mythtv
button = VolumeUp
config = F11
end

#	VolumeDown
##	Volume down
begin
prog = mythtv
button = VolumeDown
config = F10
end

#	PrevCh
##	Change tuner card input
begin
prog = mythtv
button = PrevCh
config = c
end

#	Mute
##	Mute
begin
prog = mythtv
button = Mute
config = |
end

#	ChannelUp
begin
prog = mythtv
button = ChannelUp
config = Up
end

#	ChannelDown
begin
prog = mythtv
button = ChannelDown
config = Down
end

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

#	Rewind
begin
prog = mythtv
button = Rewind
config = Left
end

#	SkipBack
begin
prog = mythtv
button = SkipBack
config = PgUp
end

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

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

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

#	Fwdwind
begin
prog = mythtv
button = Fwdwind
config = Right
end

#	SkipFwd
begin
prog = mythtv
button = SkipFwd
config = PgDown
end

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

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

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

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

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

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

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

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

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

#	Star
##	Info
begin
prog = mythtv
button = Star
config = i
end

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

#	#
##	Toggle recording of current program (cycles through types)
begin
prog = mythtv
button = #
config = r
end

#	Red
##	Picture zoom
begin
prog = mythtv
button = Red
config = W
end

#	Green
#	OSD navigation through channels/programs
begin
prog = mythtv
button = Green
config = O
end

#	Yellow
begin
prog = mythtv
button = Yellow
config = Q
end

#	Blue
begin
prog = mythtv
button = Blue
config = Z
end



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

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

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

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

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

begin
prog = mplayer
button = ArrowLeft
config = seek -10
end

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

begin
prog = mplayer
button = ArrowRight
config = seek +30
end

# Seek forward 30 seconds
begin
prog = mplayer
button = Fwdwind
config = seek +30
end

# Quit
begin
prog = mplayer
button = BackExit
config = quit
end

# Seek forward 10 minutes
begin
prog = mplayer
button = SkipFwd
config = seek +600
end

# Seek backward 10 minutes
begin
prog = mplayer
button = SkipBack
config = seek -600
end

# Toggle full-screen
begin
prog = mplayer
button = Star
config = vo_fullscreen
end



###### Xine lirc setup
begin
prog = xine
button = Play
config = Play
end

begin
prog = xine
button = Stop
config = Stop
end

begin
prog = xine
button = BackExit
config = Quit
end

begin
prog = xine
button = Pause
config = Pause
end

begin
prog = xine
button = ArrowUp
config = EventUp
end

begin
prog = xine
button = ArrowDown
config = EventDown
end

begin
prog = xine
button = ArrowLeft
config = EventLeft
end

begin
prog = xine
button = ArrowRight
config = EventRight
end

begin
prog = xine
button = OK
config = EventSelect
end

begin
prog = xine
button = Fwdwind
config = SpeedFaster
end

begin
prog = xine
button = Rewind
config = SpeedSlower
end

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

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

begin
prog = xine
button = Mute
config = Mute
end

begin
prog = xine
button = Menu
config = RootMenu
end

begin
prog = xine
button = SkipFwd
config = EventNext
end

begin
prog = xine
button = SkipBack
config = EventPrior
end

begin
prog = xine
button = Go
config = OSDStreamInfos
end 