Skip to content

Instantly share code, notes, and snippets.

@hchbaw
Last active December 27, 2015 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hchbaw/7381423 to your computer and use it in GitHub Desktop.
Save hchbaw/7381423 to your computer and use it in GitHub Desktop.
# /usr/share/doc/lirc/html/configure.html
begin mpc
begin
button = KEY_CHANNELUP
mode = mplayer
flags = quit
end
begin
prog = irexec
button = KEY_PLAY
config = mpc toggle
repeat = 0
end
end mpc
begin mplayer
begin
button = KEY_CHANNELUP
mode = mpc
flags = quit
end
begin
prog = mplayer
button = KEY_PLAY
config = pause
repeat = 0
end
begin
prog = mplayer
button = KEY_RIGHT
config = seek 10
repeat = 0
end
begin
prog = mplayer
button = KEY_LEFT
config = seek -10
repeat = 0
end
begin
prog = mplayer
button = KEY_UP
config = seek 60
repeat = 0
end
begin
prog = mplayer
button = KEY_DOWN
config = seek -60
repeat = 0
end
end mplayer
begin
flags = startup_mode
mode = mpc
end
begin
prog = irexec
button = KEY_POWER
config = sync;shutdown -h now
repeat = 0
end
begin
prog = irexec
button = KEY_VOLUMEUP
config = amixer -c0 sset Master 1.5dB+
repeat = 0
end
begin
prog = irexec
button = KEY_VOLUMEDOWN
config = amixer -c0 sset Master 1.5dB-
repeat = 0
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment