This is a set of scripts to popup a kdialog message about the currently compiling package(s).

ikgenlop.sh is the more advanced one. It uses the inotify API to watch emerge.log and inform you when something new happens.

It can be run from KDE autostart, or xinitrc or whatever, no need for cron.

The simpler one, kgenlop.sh script will just call genlop and pop up a message when it has something to say.

You can run it as a cron job e.g. like this:

*/5 * * * * /home/user/bin/kgenlop.sh 2>/dev/null

You need app-portage/genlop and of course kde-base/kdialog installed.

The included Makefile will copy the script to ~/bin and set up a symlink in the KDE autostart folder (~/.kde4/Autostart). Do not run make if you don't want this.

Changelog:

1.6: mostly cosmetic changes, typos etc. changed calls to inotify to only report on rw changes, not only ro so other apps don't cause a storm of popups.
1.5: moved settings to ~/.ikgenloprc, create this file on first run, introduce a PID file and use it to detect multiple instances.
1.4: added a couple of tunables to steer verbosity. Thanks to Krog for testing.
1.3: many more features for iknotify to make it more annoying ;)
1.2: many changes, use a combination if inotify and tail to push status updates to kdialog. Please excuse the brute-force usage of awk and friends. Cleanup will follow later.
1.1: Added inotify based version after suggestion from user Krog.
1.0: first revision

Sure. Done!

ideas

It's a nice idea.
But maybe it's not good to automatically run this script continuously...
I wonder if it is not possible to make it automatic?
perhaps using "tail -F /var/log/emerge.log|grep emerge" as a source of information...
there was a plasmoid that was showing this information as a box... perhaps merging that thing with the notify system...
of course i'm not a programmer, it's just an idea :-)

maybe you can at first add an "if" to the script: if emerge is running do...

Re: maybe

running in the cron way is less good of my idea because if (example) you emerge something very long (openoffice, for example) you will see many messages telling exactly the same thing. With a tail/grep stuff you get only the new messages.

I'll play around with it more, maybe I can find a better way.

Ant feedback is appreciated ;)

wow!

Now it's amazing!
Thanks for the new version :-)
I like to set FREQ=0.
Now, it could be good to filter what message to show... for example, the uninstall of the old package afer an upgrade is usless to show and adds too much messages.
Again thanks for your job :-)

How do you like Plasma 5? The best KDE Desktop ever. Definitely a nice improvement. Not decided yet. Haven't tried it yet. I do not like some of the changes. KDE is taking the wrong way. I am still sticking with KDE 3.5. I have no opinion, but wanted to vote anyway.

Copyright 2001-2015 KDE-Look.org Team All rights reserved. KDE-Look.org is not liable for any content or goods on this site.All contributors are responsible for the lawfulness of their uploads.KDE and K Desktop Environment are trademarks of KDE e.V.