Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-17-2014, 10:02 PM   #1
Registered: Mar 2008
Posts: 61

Rep: Reputation: 19
lirc - how do you call one script for every button?

Hi - I'm setting-up lirc and I want it such that whenever a button is pressed, that button is passed to my script to process it.

I gather that the part of lirc where buttons are processed is the lircrc file, however I cannot for-the-life-of-me understand it. It is bizarre for two reasons.

Firstly, it appears you have to have a section to process every button. I would rather have minimal code in this file to just pass every button to my script. Then I don't need to modify this lircrc file every time I change the remote and I can do all of the processing in my script. How would I do this?

Secondly, even if I did want to process the buttons in the lircrc file, I cannot understand it. I would expect that the lircrc file would fundamentally have two things, the button and the related command to run. Instead it has three parameters (button, prog, config). I gather you set prog=irexec and config=the command you want to run. Why isn't there just two parameters (the button, and the command to run)????

I'm mostly interested in the answer to the first point above. I only mention the second point because it is really messing-me-up and I can't figure out the first point.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installed LIRC-0.9.0 on Fedora 14, /dev/lirc was not created, lirc programs won't run FalkiD Linux - Software 4 06-06-2011 10:33 AM
Gnome at Fedora13: launch button for call of gnome-terminal to see script-output A_Birkert Linux - Desktop 1 11-07-2010 07:40 PM
Lirc ignores remote button presses monstermunch Linux - Software 3 02-01-2008 02:11 PM
Call skype contacts by using the remote control, lirc ? frenchn00b Linux - General 0 01-05-2008 03:53 PM
How can I script an autologin, automatically call kde(or simillar) and call an app aboaventura Slackware 8 02-04-2007 12:00 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration