Skip to content

Instantly share code, notes, and snippets.

@jiphex
Created March 15, 2010 21:27
Show Gist options
  • Save jiphex/333350 to your computer and use it in GitHub Desktop.
Save jiphex/333350 to your computer and use it in GitHub Desktop.
Config for LIRC to use with XBMC
begin
prog = irexec
remote = mceusb
button = Print
repeat = 0
config = killall -9 xbmc.bin
config = echo "`date` XBMC Killed" >> /var/log/lirc.log
end
begin
prog = irexec
remote = mceusb
button = Home
repeat = 0
config = pgrep xbmc.bin || DISPLAY=:0.0 sudo -u james xbmc &
config = echo "`date` XBMC Started" >> /var/log/lirc.log
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment