KMail, flashing LEDs and the problems therein.
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 any help you can offer.
I have no experience with KMail or that LED thingie but here's one thing you could do.
Bind a certain keystroke to execute that command through your window manager(KDE?).
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?
|All times are GMT -5. The time now is 01:32 PM.|