# /home/mythtv/.mythtv/lircrc 
#
# MythTV LIRC config file for the mceusb2 

# Info about lircrc statment
#begin 
#	prog	= ...     irxevent, irexec, mythtv, mplayer, xine, or others
#	remote	= ...     mceusb, or what ever you happen to have
#	button	= ...	   remote keys names from your lircd.conf file
#	repeat	= ...     repeat = 2 is fast, repeat = 4 is slower 
#	delay	= ...     delay before repeat, 1 is short, 4 is longer
#	config	= ...     output key presses to key bindings editor
#	mode	= ...
#	flags	= ...
#end

# Test your new Lirc settings
#   /etc/init.d/lirc restart 	To restart Lirc
#   ctrl-alt-backspace		To restart the frontend


############################## irexec ###
#begin
#	prog = irexec
#	button = Power
#	config =  /usr/bin/sudo halt
#end

#
###################### Mythtv Section ###
# MythTV Key Binding Editor		Mythtv Menu>>Utilities / Setup>>Edit Keys>>

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


begin
	prog = mythtv
	button = Stop
	config = Esc
end

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

# Rewind (while viewing)
begin
	prog = mythtv
	button = Rewind
	repeat = 0
	delay	= 1
	config = <
end

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

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

# Skip backward (1 min default)
begin
	prog = mythtv
	button = Replay
	repeat = 4
	delay	= 4
	config = PgUp
end

# Skip forward (1 min default)
begin
	prog = mythtv
	button = Skip
	repeat = 4
	delay	= 4
	config = PgDown
end

#<><><><><><><><><><><><><><><>

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

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

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

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

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

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

# Bring up OSD info
begin
	prog = mythtv
	button = More
	config = I
end

begin
	prog = mythtv
	button = Start
	config = M
end

#<><><><><><><><><><><><><><><>

# Volume-Up
begin
	prog = mythtv
	button = VolumeUp
	repeat = 2
	config = ] 
end

# Volume-Down
begin
	prog = mythtv
	button = VolumeDown
	repeat = 2
	config = [ 
end

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

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

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

# Numbers 0-9 <><><><><><><><><><><>

begin
	prog = mythtv
	button = One
#	repeat = 2
	config = 1
end

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

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

begin
	prog = mythtv
	button = Four
#	repeat = 2
	config = 4
end

begin
	prog = mythtv
	button = Five
#	repeat = 2
	config = 5
end

begin
	prog = mythtv
	button = Six
#	repeat = 2
	config = 6
end

begin
	prog = mythtv
	button = Seven
#	repeat = 2
	config = 7
end

begin
	prog = mythtv
	button = Eight
#	repeat = 2
	config = 8
End

begin
	prog = mythtv
	button = Nine
#	repeat = 2
	config = 9
end

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

#<><><><><><><><><><><><><><><><><><><><>
# Seek to previous commercial cut point
begin
	prog = mythtv
	button = Star
	config = Q
end

# Seek to next commercial cut point
begin
	prog = mythtv
	button = Hash
	config = Z
end

begin
	prog = mythtv
	button = Clear
	repeat = 0
	config = D
end

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

#<><><><><><><><>Menu Comands<><><><><><><><>
begin 
	prog = mythtv
	button = MyMusic
	config = M
end

begin
	prog = mythtv
	button = MyRadio
	config = M
end

begin
	prog = mythtv
	button = MyPictures
	config = Alt+P
end

begin
	prog = mythtv
	button = MyVideos
	config = Alt+v
end

begin
	prog = mythtv
	button = MyTV
	config = Alt+L
end

begin
	prog = mythtv
	button = LiveTV
	config = Alt+T
end

begin
	prog = mythtv
	button = RecordedTV
	config = Alt+I
end

# Program Guide 
begin
	prog = mythtv
	button = Guide
	config = Alt+G
end

begin
	prog = mythtv
	button = DVDMenu
	config = M
end

begin
	prog = mythtv
	button = Messenger
	config = M
end

# 
###################################################### MPlayer Section #####

# Show OSD 
begin 
	prog = mplayer 
	button = OK 
	config = osd 
end 

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

# If paused, resume playing 
begin 
	prog = mplayer 
	button = Play 
	config = pause 
end 

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

# Volume-Up 
begin 
	prog = mplayer 
	button = VolumeUp 
	repeat = 2 
	config = volume +1 
end 

# Volume-Down 
begin 
	prog = mplayer 
	button = VolumeDown 
	repeat = 2 
	config = volume -1 
end 

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

# Seek back 60 seconds 
begin 
	prog = mplayer 
	button = Left 
	repeat = 2 
	config = seek -60 
end 

# Seek forward 60 seconds 
begin 
	prog = mplayer 
	button = Right 
	repeat = 2 
	config = seek +60 
end 

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

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

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

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

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

# increase brightness 
begin 
	button = ChannelUp 
	prog   = mplayer 
	repeat = 2 
	config = brightness +1 
end 

# decrease brightness 
begin 
	button = ChannelDown 
	prog   = mplayer 
	repeat = 2 
	config = brightness -1 
end 

# Toggle full-screen 
#begin 
#	prog = mplayer 
#	button = FULL #???????????????????????????
#	repeat = 2 
#	config = vo_fullscreen 
#end 


###################################################### XINE Section ##########

# For a compleate list of Xine's Lirc Keybindings use comand	
#
#   xine --keymap=lirc>.lircrc.xine.keybindings
#
# Creates file in current directory called ".lircrc.xine.keybindings"


# xine key bindings. 
# Automatically generated by xine-ui version 0.99.5.
## 

#<><><><><><><><><><> Xine Video Movement <><><><>

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

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

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

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

# set position to -60 seconds in current stream 
begin 
	button = Replay 
	prog   = xine 
	repeat = 2
#	delay	= 1 
	config = SeekRelative-60 
end 

# set position to +60 seconds in current stream 
begin 
	button = Skip 
	prog   = xine 
	repeat = 2
#	delay	= 1 
	config = SeekRelative+60 
end 

#<><><><><><><><><><><><> Xine Stream Position <><><><>

# set position in current stream 
begin 
   button = One 
   prog   = xine 
   config = SetPosition10%
end 

begin 
   button = Two 
   prog   = xine 
   config = SetPosition20% 
end 

begin 
   button = Three 
   prog   = xine 
   config = SetPosition30% 
end 

begin 
   button = Four 
   prog   = xine 
   config = SetPosition40% 
end 

begin 
   button = Five 
   prog   = xine 
   config = SetPosition50% 
end

begin 
   button = Six 
   prog   = xine 
   config = SetPosition60% 
end 

begin 
   button = Seven 
   prog   = xine 
   config = SetPosition70% 
end 

begin 
   button = Eight 
   prog   = xine 
   config = SetPosition80% 
end 

begin 
   button = Nine 
   prog   = xine 
   config = SetPosition90% 
end 

begin 
	button = Zero 
	prog   = xine 
	repeat = 2
	delay	= 1 
	config = SeekRelative-15 
end

begin 
	button = Forward 
	prog   = xine 
	repeat = 0 
	config = SpeedFaster 
end 

begin 
	button = Rewind 
	prog   = xine 
	repeat = 0 
	config = SpeedSlower 
end 

#<><><><><><><><><><><><><><><><><><><>

# increment audio volume 
begin 
   button = VolumeUp 
   prog   = xine 
   repeat = 1 
   config = Volume+ 
end 

# decrement audio volume 
begin 
   button = VolumeDown 
   prog   = xine 
   repeat = 1 
   config = Volume- 
end 

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

# jump to Media Menu
begin
	button = Star
	prog   = xine
	config = TitleMenu
end

# jump to Title Menu 
begin 
	button = DVDMenu 
	prog   = xine 
	config = Menu 
end 

# jump to Root Menu 
begin 
	button = Start 
	prog   = xine 
	config = RootMenu 
end

# jump to Subpicture Menu
begin
	button = Hash
	prog   = xine
	config = SubpictureMenu
end
 
# menu navigate up 
begin 
	button = Up 
	prog   = xine 
	repeat = 2
	delay	= 1 
	config = EventUp 
end 

# menu navigate down 
begin 
	button = Down 
	prog   = xine 
	repeat = 2
	delay	= 1 
	config = EventDown 
end 

# menu navigate left 
begin 
	button = Left 
	prog   = xine 
	repeat = 2
	delay	= 1 
	config = EventLeft 
end 

# menu navigate right 
begin 
	button = Right 
	prog   = xine 
	repeat = 2
	delay	= 1 
	config = EventRight 
end

# menu select
begin
	button = OK
	prog   = xine
	config = EventSelect
end

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

 display stream information using OSD 
begin 
   button = More 
   prog   = xine 
   config = OSDStreamInfos 
end 

# increase brightness by 10 
begin 
   button = ChannelUp 
   prog   = xine 
   config = BrightnessControl+ 
end 

# decrease brightness by 10 
begin 
   button = ChannelDown 
   prog   = xine 
   config = BrightnessControl- 
end 

# quit the program 
begin 
   button = Back 
   prog   = xine 
   config = Quit 
end
 
# set position to -30 seconds in current stream 	config = SeekRelative-30
# set position to +30 seconds in current stream 	config = SeekRelative+30
# eject the current medium					config = Eject
# zoom in							config = ZoomIn 
# zoom out							config = ZoomOut 
# fullscreen toggle						config = ToggleFullscreen 

## 
# End of xine . 
##