Linux - SoftwareThis 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.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm using KMail 3.1.3 running on Mandrake 9.2, and I've got a filter set up to notify me of incoming mail via a sound and an application called "ledcontrol" which starts the scroll-lock LED flashing when I've got new mail. It works just great.
The problem is that the LED doesn't stop blinking until a command is send to ledcontrol via command line. I can't figure out an elegant way of doing this without having to literally open a term window and execute the command each time.
Here are some other options I have considered:
1) create a cron job to check the ~/mail/inbox/new folder every couple minutes, and if no files exist (meaning I've read all new mail), it executes the command to kill the LED. Problem is that KMail doesn't appear to put unread messages in this folder, and shoves everything into /cur instead. Frankly, I don't know what the /new folder is even for.
2) Figure out some other measurable difference between read and unread maildir files for a cron job, similar to 1).
3) Create a key shortcut in KMail to execute the ledcontrol command. KMail doesn't seem to offer key shortcuts for anything but KMail internal commands, unless I'm missing the obvious.
4) Something else I haven't thought of yet.
Any advice? I am very picky about it being simple (the ideal is automatic, like option 1), which I understand limits my possibilities.
Thanks for your idea. I was just messing around with that solution as you replied, and, although it seems to get the job done, it's kind of an ugly fix. I created a shell script with the "turn off LED" command in it, added that to the KDE menu, and then mapped the Scroll Lock key to that menu item.
It works, but then the shell script sits in the task bar for 30 seconds or so, while KDE attempts to "load" it as an application. Is there a way to do this while keeping it as an invisible background task, or am I missing something obvious again?