All pastes #781792 Raw Edit

.lircrc file

public text v1 · immutable
·published 2007-11-19 00:11 UTC
rendered paste body
#
# lircrc for DVICO MCE remote
# Includes configurations for irexec, irxevent, aumix, mythtv
# 2005-11-21 Ben New
# mailto:ben@leftclick.com.au
#
# Based on:
# lircrc.example.DVICO-nativelirc
# 2004-07-04, Chris Pascoe
# mailto:linuxdvb@itee.uq.edu.au
#
# Save this file in ~/.mythtv/lircrc
#
# Mappings are described in this format:
# [Button] -> [Action]
# Where [Button] is the name or description of button on remote,
# and [Action] is name or description of action performed in prog.
#

##########################################
## Application Startup / Mode Selection ##
##          (irexec / mode tag)         ##
##########################################

# DTV -> Start MythTV personal video recorder (Desktop 1)
begin
    prog = irexec
    button = Red
    repeat = 0
    config = mythfrontend
#    config = echo 'under here' >> /home/jeff/test.txt
    mode = mythtv
end

# MP3 -> Start AmaroK media player (Desktop 2)
begin
    prog = irexec
    button = mp3
    repeat = 0
    config = amarok
    mode = amarok
end

# DVD -> Start Mozilla Firefox web browser (Desktop 3)
begin
    prog = irexec
    button = dvd
    repeat = 0
    config = mozilla-firefox
    mode = mozilla-firefox
end

# CPF -> Start Mozilla Thunderbird mail client (Desktop 4)
begin
    prog = irexec
    button = cpf
    repeat = 0
    config = mozilla-thunderbird
    mode = mozilla-thunderbird
end

# Start -> Mouse Mode
begin
    button = start
    repeat = 0
    mode = mouse
end


#####################################
## Generic Commands & KDE Controls ##
##   (irexec / dcop / irxevent)    ##
#####################################

# Start -> Show KDE Menu
#begin
#    prog = irexec
#    button = start
#    config = dcop kicker kicker showKMenu
#end

# Alt-Tab -> Change Window
begin
    prog = irxevent
    button = alt_tab
    repeat = 5
    config = Key Alt-Tab RootWindow
end

# DVD Menu -> Next Desktop
begin
    prog = irexec
    button = dvd_menu
    repeat = 5
    config = dcop kwin KWinInterface nextDesktop
end

# Back (<-) -> Previous Desktop
begin
    prog = irexec
    button = back
    repeat = 5
    config = dcop kwin KWinInterface previousDesktop
end

# Snapshot -> Shift-TAB
begin
    prog = irxevent
    button = snapshot
    config = Key Shift-TAB CurrentWindow
end

# Live -> Space Bar
begin
    prog = irxevent
    button = live
    config = Key Space CurrentWindow
end

# Folder Open -> TAB
begin
    prog = irxevent
    button = folder_open
    config = Key Tab CurrentWindow
end



######################
##  Audio Controls  ##
## (irexec / aumix) ##
######################

# Volume Up -> Volume Up
begin
    prog = irexec
    button = vol_up
    repeat = 3
    config = emu10k-setvolume 5+ true
end

# Volume Down -> Volume Down
begin
    prog = irexec
    button = vol_down
    repeat = 3
    config = emu10k-setvolume 5- true
end

# Mute -> Mute
begin
    prog = irexec
    button = mute
    config = emu10k-mute true
end



#########################
## Television Controls ##
##       (mythtv)      ##
#########################

begin mythtv

# TV On/Off -> ESCAPE
begin
    prog = irxevent
    button = tv_onoff
    config = Key Escape CurrentWindow
end

# Setup -> Show Menu
begin
    prog = mythtv
    button = setup
    config = M  
end

# Guide -> EPG
begin
    prog = mythtv
    button = guide
    config = S  
end

# OK -> ENTER (RETURN)
begin
    prog = mythtv
    button = ok
    config = Enter
end

# Up -> Up (Channel Up)
begin
    prog = mythtv
    button = up
    repeat = 3
    config = Up
end

# Down -> Down (Channel Down)
begin
    prog = mythtv
    button = down
    repeat = 3
    config = Down
end

# Left -> Left
begin
    prog = mythtv
    button = left
    repeat = 3
    config = Left
end

# Right -> Right
begin
    prog = mythtv
    button = right
    repeat = 3
    config = Right
end

# More (i) -> Show On-Screen Info
begin
    prog = mythtv
    button = more
    config = I
end

# Replay -> Slow Down Playback
begin
    prog = mythtv
    button = replay
    config = J
end

# Skip -> Speed Up Playback
begin
    prog = mythtv
    button = skip
    config = U
end

# Channel Up -> Channel Up
begin
    prog = mythtv
    button = ch_up
    config = Up
end

# Channel Down -> Channel Down
begin
    prog = mythtv
    button = ch_down
    config = Down
end

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

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

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

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

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

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

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

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

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

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

# Aspect -> Change Aspect Ratio
begin
   prog = mythtv
   button = aspect
   config = W
end

# Fullscreen -> Browse Mode
begin
    prog = mythtv
    button = fullscreen
    config = O
end

# Rewind -> Skip Back
begin
    prog = mythtv
    button = rewind
    config = <
end

# Play/Pause -> Play/Pause
begin
    prog = mythtv
    button = playpause
    config = P
end

# Fast Forward -> Skip Forward
begin
    prog = mythtv
    button = fastforward
    config = >
end

# Stop -> Play/Pause
begin
    prog = mythtv
    button = stop
    config = P  
end

# Record -> Record
begin
    prog = mythtv
    button = record
    config = R  
end

# White On/Off -> Kill MythTV Processes
begin
    prog = irexec
    button = white_onoff
    config = killall mythfrontend.bin
end

end mythtv



###########################
## Media Player Settings ##
##    (dcop / amarok)    ##
###########################

begin amarok

# TV On/Off -> Stop
begin
    prog = irexec
    button = tv_onoff
    config = dcop amarok player stop
end

# Setup -> Alt-H (Help menu)
begin
    prog = irxevent
    button = setup
    config = Key Alt-H CurrentWindow
end

# Guide -> Show Current Track (in playlist)
begin
    prog = irxevent
    button = guide
    config = Key Ctrl-KP_Enter CurrentWindow
end

# OK -> ENTER / RETURN
begin
    prog = irxevent
    button = ok
    config = Key Return CurrentWindow
end

# Up -> Up
begin
    prog = irxevent
    button = up
    repeat = 3
    config = Key Up CurrentWindow
end

# Down -> Down
begin
    prog = irxevent
    button = down
    repeat = 3
    config = Key Down CurrentWindow
end

# Left -> Left
begin
    prog = irxevent
    button = left
    repeat = 3
    config = Key Left CurrentWindow
end

# Right -> Right
begin
    prog = irxevent
    button = right
    repeat = 3
    config = Key Right CurrentWindow
end

# More (i) -> Show OSD
begin
    prog = irexec
    button = more
    config = dcop amarok player showOSD
end

# Channel Up -> PgUp
begin
    prog = irxevent
    button = ch_up
    repeat = 3
    config = Key Page_Up CurrentWindow
end

# Channel Down -> PgDn
begin
    prog = irxevent
    button = ch_down
    repeat = 3
    config = Key Page_Down CurrentWindow
end

# Replay -> Previous Track
begin
    prog = irexec
    button = replay
    config = dcop amarok player prev
end

# Skip -> Next Track
begin
    prog = irexec
    button = skip
    config = dcop amarok player next
end

# Rewind -> Seek Back
begin
    prog = irexec
    button = rewind
    repeat = 1
    config = dcop amarok player seekRelative -5
end

# Play/Pause -> Play/Pause
begin
    prog = irexec
    button = playpause
    config = dcop amarok player playPause
end

# Fast Forward -> Seek Forward
begin
    prog = irexec
    button = fastforward
    repeat = 1
    config = dcop amarok player seekRelative +5
end

# Stop -> Stop
begin
    prog = irexec
    button = stop
    config = dcop amarok player stop
end

# White On/Off -> Kill Amarok Processes
begin
   prog = irexec
   button = white_onoff
   config = killall amarokapp
end

end amarok



##########################
## Web Browser Settings ##
##  (mozilla-firefox)   ##
##########################

begin mozilla-firefox

# TV On/Off -> Ctrl-W (Close Tab / Window)
begin
    prog = irxevent
    button = tv_onoff
    config = Key Ctrl-W CurrentWindow
end

# Setup -> Alt-H (Help menu)
begin
    prog = irxevent
    button = setup
    config = Key Alt-H CurrentWindow
end

# Replay -> Decrease Font Size
begin
    prog = irxevent
    button = replay
    config = Key Ctrl-KP_Subtract CurrentWindow
end

# Skip -> Increase Font Size
begin
    prog = irxevent
    button = skip
    config = Key Ctrl-KP_Add CurrentWindow
end

# OK -> ENTER / RETURN
begin
    prog = irxevent
    button = ok
    config = Key Return CurrentWindow
end

# Up -> Up
begin
    prog = irxevent
    button = up
    repeat = 3
    config = Key Up CurrentWindow
end

# Down -> Down
begin
    prog = irxevent
    button = down
    repeat = 3
    config = Key Down CurrentWindow
end

# Left -> Left
begin
    prog = irxevent
    button = left
    repeat = 3
    config = Key Left CurrentWindow
end

# Right -> Right
begin
    prog = irxevent
    button = right
    repeat = 3
    config = Key Right CurrentWindow
end

# Channel Up -> PgUp
begin
    prog = irxevent
    button = ch_up
    repeat = 3
    config = Key Page_Up CurrentWindow
end

# Channel Down -> PgDn
begin
    prog = irxevent
    button = ch_down
    repeat = 3
    config = Key Page_Down CurrentWindow
end

# Rewind -> Go Back
begin
    prog = irxevent
    button = rewind
    config = Key Alt-Left CurrentWindow
end

# Stop -> Go Home
begin
    prog = irxevent
    button = stop
    config = Key Alt-Home CurrentWindow
end

# Fast Forward -> Go Forward
begin
    prog = irxevent
    button = fastforward
    config = Key Alt-Right CurrentWindow
end

# White On/Off -> Kill Firefox Processes
begin
   prog = irexec
   button = white_onoff
   config = killall firefox-bin
end

end mozilla-firefox



###########################
## Mail Client Settings  ##
## (mozilla-thunderbird) ##
###########################

begin mozilla-thunderbird

# TV On/Off -> ESCAPE (Close Window)
begin
    prog = irxevent
    button = tv_onoff
    config = Key Escape CurrentWindow
end

# White On/Off -> Ctrl-Q (Quit Thunderbird)
begin
   prog = irxevent
   button = white_onoff
   config = Key Ctrl-Q CurrentWindow
end

# Setup -> Alt-H (Help menu)
begin
    prog = irxevent
    button = setup
    config = Key Alt-H CurrentWindow
end

# OK -> ENTER / RETURN
begin
    prog = irxevent
    button = ok
    config = Key Return CurrentWindow
end

# Up -> Up
begin
    prog = irxevent
    button = up
    repeat = 3
    config = Key Up CurrentWindow
end

# Down -> Down
begin
    prog = irxevent
    button = down
    repeat = 3
    config = Key Down CurrentWindow
end

# Left -> Left
begin
    prog = irxevent
    button = left
    repeat = 3
    config = Key Left CurrentWindow
end

# Right -> Right
begin
    prog = irxevent
    button = right
    repeat = 3
    config = Key Right CurrentWindow
end

# Replay -> Decrease Font Size
begin
    prog = irxevent
    button = replay
    config = Key Ctrl-KP_Subtract CurrentWindow
end

# Skip -> Increase Font Size
begin
    prog = irxevent
    button = skip
    config = Key Ctrl-KP_Add CurrentWindow
end

# Channel Up -> PgUp
begin
    prog = irxevent
    button = ch_up
    repeat = 3
    config = Key Page_Up CurrentWindow
end

# Channel Down -> PgDn
begin
    prog = irxevent
    button = ch_down
    repeat = 3
    config = Key Page_Down CurrentWindow
end

# White On/Off -> Kill Thunderbird Processes
begin
   prog = irexec
   button = white_onoff
   config = killall mozilla-thunderbird
end

end mozilla-thunderbird


# Mouse mode - see /etc/lircmd.conf