HOWTO’s

Example LIRC config

# Command bindings

begin
button = TV
prog = irexec
repeat = 0
config = vlc
end

begin
button = dvd
prog = irexec
repeat = 0
config = mplayer dvd://
end

begin
button = Music
prog = irexec
repeat = 0
config = amarok
end

begin
button = Pictures
prog = irexec
repeat = 0
config = f-spot
end

# Program Specific
#

# XMMS
# Full list of commands can be found in the xmms-lirc readme

begin
button = Skip
prog = xmms
config = next
end
begin
button = Play
prog = xmms
config = play
end
begin
button = Replay
prog = xmms
config = prev
end
begin
button = Pause
prog = xmms
config = pause
end
begin
button = Stop
prog = xmms
config = stop
end
begin
button = VolUp
prog = xmms
config = vol_up 1
repeat = 1
end
begin
button = VolDown
prog = xmms
config = vol_down 1
repeat = 1
end
begin
button = Forward
prog = xmms
config = fwd 1
repeat = 1
end
begin
button = Reverse
prog = xmms
config = bwd 1
repeat = 1
end
begin
button = Mute
prog = xmms
config = mute
end
begin
button = Power
prog = xmms
config = quit
end

# Mplayer
# Info can be found here http://www.mplayerhq.hu/DOCS/HTML/en/control.html#lirc

begin
button = VolUp
prog = mplayer
config = volume 1
repeat = 1
end

begin
button = VolDown
prog = mplayer
config = volume -1
repeat = 1
end

begin
button = Pause
prog = mplayer
config = pause
end

begin
button = Play
prog = mplayer
config = play
end

begin
button = Stop
prog = mplayer
config = stop
end

# VLC Config
begin
prog = vlc
button = Play
config = key-play
end
begin
prog = vlc
button = Pause
config = key-pause
end
begin
prog = vlc
button = Stop
config = key-stop
end
begin
prog = vlc
button = Power
config = key-quit
end
begin
prog = vlc
button = Skip
config = key-next
repeat = 0
end
begin
prog = vlc
button = Replay
config = key-prev
repeat = 0
end
begin
prog = vlc
button = Home
config = key-fullscreen
end
begin
prog = vlc
button = Reverse
config = key-jump-3sec
repeat = 1
end
begin
prog = vlc
button = Forward
config = key-jump+3sec
repeat = 1
end
begin
prog = vlc
button = VolDown
config = key-vol-down
repeat = 1
end
begin
prog = vlc
button = VolUp
config = key-vol-up
repeat = 1
end
begin
prog = vlc
button = Mute
config = key-vol-mute
end

#########################################################################
# #
# Amarok #
# #
#########################################################################

begin amarok
begin
prog = irexec
button = Play
config = dcop amarok player play &
end

begin
prog = irexec
button = Pause
config = dcop amarok player pause &
end

begin
prog = irexec
button = Stop
config = dcop amarok player stop &
end

begin
prog = irexec
button = Skip
repeat = 1
config = dcop amarok player next &
end

begin
prog = irexec
button = Replay
repeat = 1
config = dcop amarok player prev &
end

begin
prog = irexec
button = More
config = dcop amarok player togglePlaylist &
end

begin
prog = irexec
button = Forward
repeat = 3
config = dcop amarok player seek $(($(dcop amarok player trackCurrentTime) + 10))
end
begin
prog = irexec
button = Reverse
repeat = 3
config = dcop amarok player seek $(($(dcop amarok player trackCurrentTime) – 10)) &
end

begin
prog = irexec
button = VolUp
repeat = 3
config = dcop amarok player volumeUp &
end

begin
prog = irexec
button = VolDown
repeat = 3
config = dcop amarok player volumeDown &
end

begin
prog = irexec
button = Mute
repeat = 3
config = dcop amarok player mute &
end

begin
prog = irexec
button = Power
mode = amarok
config = dcop amarok MainApplication-Interface quit &
end

end amarok