# /etc/.lircrc -    .

begin
prog = irexec
button = VIDEO
mode = mplayer &
config = gmplayer 1>/dev/null 2>/dev/null &
end

begin
prog = irexec
button = TV/FM
config = xawtv &
mode = xawtv
end


#Start xawtv config

begin xawtv

begin
prog = irxevent
button = POWER
repeat = 0
config = Key Escape xawtv
end
begin
prog = irexec
button = MUTE
repeat = 0
config = xawtv-remote mute
end
begin
prog = irexec
button = CH_DOWN
repeat = 3
config = xawtv-remote setstation prev
end
begin
prog = irexec
button = CH_UP
repeat = 3
config = xawtv-remote setstation next
end
begin
prog = irexec
button = FULLSCREEN
repeat = 0
config = xawtv-remote fullscreen
end
begin
prog = irexec
button = 1
repeat = 0
config = xawtv-remote setstation 0
end
begin
prog = irexec
button = 2
repeat = 0
config = xawtv-remote setstation 1
end
begin
prog = irexec
button = 3
repeat = 0
config = xawtv-remote setstation 2
end
begin
prog = irexec
button = 4
repeat = 0
config = xawtv-remote setstation 3
end
begin
prog = irexec
button = 5
repeat = 0
config = xawtv-remote setstation 4
end
begin
prog = irexec
button = 6
repeat = 0
config = xawtv-remote setstation 5
end
begin
prog = irexec
button = 7
repeat = 0
config = xawtv-remote setstation 6
end
begin
prog = irexec
button = 8
repeat = 0
config = xawtv-remote setstation 7
end
begin
prog = irexec
button = 9
repeat = 0
config = xawtv-remote setstation 8
end
begin
prog = irexec
button = 0
repeat = 0
config = xawtv-remote setinput Composite1
end
begin
prog = irexec
button = VOL_DOWN
repeat = 2
config = xawtv-remote volume dec 3
end
begin
prog = irexec
button = VOL_UP
repeat = 2
config = xawtv-remote volume inc 3
# config = aumix -v+2
end

end xawtv
#Start mplayer config

begin mplayer

begin
prog = mplayer
button = DISPLAY
repeat = 0
config = osd
end

begin
prog = mplayer
button = POWER
repeat = 0
config = quit
end

begin
prog = mplayer
button = VOL_UP
config = volume 1
repeat = 1
end
begin
prog = mplayer
button = VOL_DOWN
config = volume -1
repeat = 1
end
begin
prog = mplayer
button = PLAY
config = pause
repeat = 0
end
begin
prog = mplayer
button = STOP
config = seek 0 1\npause
end
begin
prog = mplayer
button = FULLSCREEN
config = vo_fullscreen
end
begin
prog = mplayer
button = CH_UP
config = seek 30 val [type=1]
repeat = 1
end
begin
begin
prog = mplayer
button = CH_DOWN
config = seek -30 val [type=1]
repeat = 1
end

begin
prog = mplayer
button = 2
config = menu up
end

begin
prog = mplayer
button = 8
config = menu down
end

begin
prog = mplayer
button = 5
config = menu ok
end

begin
prog = mplayer
button = 1
config = menu cancel
end

begin
prog = mplayer
button = 3
config = menu hide
end

begin
prog = mplayer
button = RED
config = brightness 1
repeat = 1
end

begin
prog = mplayer
button = GREEN
config = brightness -1
repeat = 1
end

begin
prog = mplayer
button = YELLOW
config = contrast 1
repeat = 1
end

begin
prog = mplayer
button = BLUE
config = contrast -1
repeat = 1
end


begin
prog = mplayer
button = PREVIEW
config = frame_drop
end

end mplayer
