Save as .lircrc in ~
# lircrc for iMON
#
# To check button names on your remote, make sure lircd is running and run irw
# Pressing buttons will show the appropriate button name
#
# Non-program specific
#
# Command bindings
begin irexec
begin
button = MyMovie
prog = irexec
repeat = 0
config = totem
mode = totem
end
begin
button = MyMusic
prog = irexec
repeat = 0
config = rhythmbox
mode = rhythmbox
end
end irexec
##############################################
### Rhythmbox juke box player
###############################################
begin rhythmbox
begin
button = MyMovie
prog = irexec
repeat = 0
config = totem
mode = totem
end
begin
button = MyMusic
prog = irexec
repeat = 0
config = rhythmbox
mode = rhythmbox
end
begin
prog = Rhythmbox
button = AppExit
config = quit
flags = mode
end
begin
prog = Rhythmbox
button = Play
config = play
end
begin
prog = Rhythmbox
button = Pause
config = pause
config = play
repeat = 0
end
begin
prog = Rhythmbox
button = Stop
config = stop
end
begin
prog = Rhythmbox
button = Vol+
config = volume_up
repeat = 3
end
begin
prog = Rhythmbox
button = Vol-
config = volume_down
repeat = 3
end
begin
prog = Rhythmbox
button = NextChapter
config = next
end
begin
prog = RhythmBox
button = PrevChapter
config = previous
end
begin
prog = RhythmBox
button = Mute
config = mute
end
begin
prog = RhythmBox
button = Eject
config = shuffle
end
begin
prog = RhythmBox
button = FastForward
config = seek_forward
repeat = 5
end
begin
prog = RhythmBox
button = Rewind
config = seek_backward
repeat = 5
end
end rhythmbox
##############################################
### Totem player
###############################################
begin totem
begin
button = MyMusic
prog = irexec
repeat = 0
config = rhythmbox
mode = rhythmbox
end
begin
button = MyMovie
prog = irexec
repeat = 0
config = totem
mode = totem
end
begin
prog = Totem
button = AppExit
config = quit
flags = mode
end
begin
prog = Totem
button = Play
config = play
end
begin
prog = Totem
button = Pause
config = pause
config = play
repeat = 0
end
begin
prog = Totem
button = Stop
config = stop
end
begin
prog = Totem
button = Vol+
config = volume_up
repeat = 3
end
begin
prog = Totem
button = Vol-
config = volume_down
repeat = 3
end
begin
prog = Totem
button = NextChapter
config = next
end
begin
prog = Totem
button = PrevChapter
config = previous
end
begin
prog = Totem
button = Mute
config = mute
end
begin
prog = Totem
button = Eject
config = shuffle
end
begin
prog = Totem
button = FastForward
config = seek_forward
repeat = 5
end
begin
prog = Totem
button = Rewind
config = seek_backward
repeat = 5
end
end totem
Showing posts with label soundgraph. Show all posts
Showing posts with label soundgraph. Show all posts
Sunday, 3 February 2008
Monday, 3 December 2007
LIRC on boot for Soundgraph Imon
- Download, build, install LIRC (in config select USB->imon->PAD IR)
- Install kdelirc through synaptic
- On reboot /dev/lirc becomes /dev/lirc0 (?!)
- Create 'lircd' (below) in /etc/init.d/ and :>chmod 755 lircd
- Run :>update-rc.d lircd defaults
######
# lircd
#! /bin/bash
# Create link to lirc0 as lircd looks for /dev/lirc
ln -s /dev/lirc0 /dev/lirc
# Set all able to read and write
chmod 0777 /dev/lirc0
# Start daemon
/home/
######
Subscribe to:
Posts (Atom)