BreadCrumbs: Lirc
Lirc
From Luke Jackson
Revision as of 22:42, 14 November 2007; Ljackson (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Lircrc File
#--------------------------------------------------
# File: /etc/lircrc (This works with the '''Hauppage 350 grey remote''')
#--------------------------------------------------
#--------------------------------------------------
# irexec
#--------------------------------------------------
begin
button = Ch+
prog = irexec
config = python /path/to/ivtv-channel.py up
end
begin
button = Ch-
prog = irexec
config = python /path/to/ivtv-channel.py down
end
begin
button = OK
prog = irexec
config = python /path/to/ivtv-channel.py enter
end
begin
button = Prev.Ch
prog = irexec
config = python /path/to/ivtv-channel.py last
end
begin
button = 0
prog = irexec
config = ivtv-tune -c 0
end
begin
button = 1
prog = irexec
config = ivtv-tune -c 1
end
begin
button = 2
prog = irexec
config = ivtv-tune -c 2
end
begin
button = 3
prog = irexec
config = ivtv-tune -c 3
end
begin
button = 4
prog = irexec
config = ivtv-tune -c 4
end
begin
button = 5
prog = irexec
config = ivtv-tune -c 5
end
begin
button = 6
prog = irexec
config = ivtv-tune -c 6
end
begin
button = 7
prog = irexec
config = ivtv-tune -c 7
end
begin
button = 8
prog = irexec
config = /usr/bin/ivtv-tune -c 46
end
begin
button = 9
prog = irexec
config = ivtv-tune -c 9
end
begin
button = Red
prog = irexec
config = killall -9 mplayer
end
begin
button = Green
prog = irexec
config = date
end
begin
button = Yellow
prog = irexec
config = mplayer "/myvideo.avi" &
end
begin
button = Blue
prog = irexec
config = mplayer /dev/video0 &
end
#--------------------------------------------------
# mplayer
#--------------------------------------------------
begin
prog = mplayer
button = Menu/i
repeat = 3
config = osd
end
begin
button = Vol+
prog = mplayer
config = volume +1
repeat = 1
end
begin
button = Vol-
prog = mplayer
config = volume -1
repeat = 1
end
begin
prog = mplayer
button = Pause
repeat = 3
config = pause
end
begin
prog = mplayer
button = Play
repeat = 3
config = seek +1
end
begin
prog = mplayer
button = Stop
repeat = 3
config = quit
end
begin
prog = mplayer
button = Mute
repeat = 3
config = mute
end
begin
prog = mplayer
button = Forward
repeat = 3
config = seek +10
end
begin
prog = mplayer
button = Rewind
repeat = 3
config = seek -10
end
begin
prog = mplayer
button = SkipForward
repeat = 3
config = seek +30
end
begin
prog = mplayer
button = Replay/SkipBackward
repeat = 3
config = seek -30
end
begin
prog = mplayer
button = TV
repeat = 3
config = vo_fullscreen
end
begin
prog = mplayer
button = Back/Exit
repeat = 3
config = quit
end
#--------------------------------------------------
# vlc
#--------------------------------------------------
begin
prog = vlc
button = Play
config = key-play
repeat = 3
end
begin
prog = vlc
button = Pause
config = key-pause
repeat = 3
end
begin
prog = vlc
button = Stop
config = key-stop
repeat = 3
end
begin
prog = vlc
button = Back/Exit
config = key-quit
repeat = 3
end
begin
prog = vlc
button = Ch+
config = key-next
repeat = 3
end
begin
prog = vlc
button = Ch-
config = key-prev
repeat = 3
end
begin
prog = vlc
button = TV
config = key-fullscreen
repeat = 3
end
begin
prog = vlc
button = Rewind
config = key-slower
repeat = 3
end
begin
prog = vlc
button = Forward
config = key-faster
repeat = 3
end
begin
prog = vlc
button = Vol-
config = key-vol-down
repeat = 0
end
begin
prog = vlc
button = Vol+
config = key-vol-up
repeat = 0
end
begin
prog = vlc
button = Mute
config = key-vol-mute
repeat = 3
end
begin
prog = vlc
button = Left
config = key-nav-left
end
begin
prog = vlc
button = Down
config = key-nav-down
end
begin
prog = vlc
button = Up
config = key-nav-up
end
begin
prog = vlc
button = Right
config = key-nav-right
end
begin
prog = vlc
button = Guide
config = key-nav-activate
end
begin
prog = vlc
button = Menu/i
config = key-disc-menu
end
begin
prog = vlc
button = Radio
config = key-audio-track
end