-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login



Sponsoring


-
- Content .- Fans  . 

KGenlop - Gentoo emerge notifier

   1.6  

KDE Improvement

Score 63%
KGenlop - Gentoo emerge notifier
zoom


KGenlop - Gentoo emerge notifier
zoom


Depends on  KDE 4.x
Downloads:  325
Submitted:  Nov 4 2010
Updated:  Jan 22 2012

Description:

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




LicenseBSD
Gentoo(kgenlop-1.6.tar.gz)
Send to a friend
Subscribe
Other  Artwork  from nephros
Report inappropriate content



goto page:  1  2 

-
.

 screenshot?

 
 by Krog on: Nov 4 2010
 
Score 50%

can you post a screenshot please? :-)


Reply to this

-

 Re: screenshot?

 
 by nephros on: Nov 4 2010
 
Score 63%

Sure. Done!


Reply to this

-
.

 ideas

 
 by Krog on: Nov 4 2010
 
Score 50%

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 :-)


Reply to this

-

 Re: ideas

 
 by nephros on: Nov 4 2010
 
Score 50%

You do have a point.

I don't see however how running tail | grep is any less "running continuously" than a cron job is. At least the latter is automatic and tunable.

I will try to cook up an inotify-based solution which avoids the cron thing and only fires a notification wen stuff is really happening.


Reply to this

-

 maybe

 
 by Krog on: Nov 4 2010
 
Score 50%

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


Reply to this

-

 Re: maybe

 
 by Krog on: Nov 4 2010
 
Score 50%

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.


Reply to this

-

 Re: Re: maybe

 
 by nephros on: Nov 4 2010
 
Score 50%

Try the new ikgenlop.sh maybe you like the behaviour more.

You can set FREQUENCY to a higher value (in seconds) if you want less messages.

If you want just one message per compile you can remove -t ${FREQUENCY} from the inotifywait line.

I find having multiple messages for very long compiles useful because it tells me how long I have to wait - but tastes are different :) ...

Thanks for your feedback.


Reply to this

-

 ikgenlop.sh link not working

 
 by GODLiKE64 on: Nov 5 2010
 
Score 50%

Hi, ikgenlop link is not working. The link is empty (http:///). Can you please fix it? Thanks!


Reply to this

-

 Re: ikgenlop.sh link not working

 
 by nephros on: Nov 5 2010
 
Score 50%

Sorry, it's my first submission, I'm no all too familiar with the kde-look.org interface.

Removed the dead link, try the tarball.


Reply to this

-

 so

 
 by Krog on: Nov 5 2010
 
Score 50%

tested WITH -t ${FREQUENCY}:
many messages from a single package BUT small packages that require just some couple of seconds (i'm on a core i7 cpu!) are emerged without message

tested WITHOUT -t ${FREQUENCY}:
it's compiling, but no messages until now and it compiled 3 packages now...


p.s. one of the two links is not working... the old one


Reply to this

-

 Re: so

 
 by nephros on: Nov 5 2010
 
Score 50%

The problem with small packages is that genlop ONLY reports something when the ebuild ist actually compiling.

Dependency computation, configure, merge etc. and packages which don't compile anything are ignored.

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

Ant feedback is appreciated ;)


Reply to this

-

 wow!

 
 by Krog on: Nov 6 2010
 
Score 50%

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 :-)


Reply to this

-

 Re: wow!

 
 by nephros on: Nov 6 2010
 
Score 50%

Glad you like it and thanks for testing.

Here's 1.4 where you can configure to your hearts content!


Reply to this

goto page:  1  2 

Add commentBack






-

-
Do you like or dislike Ubuntu Unity?
 Yes, unity is alien technology!
 It is less confusing than Gnome 3 default, shell.
 Granny thinks it is much more usable than Gnome 2
 Canonical is embarrasing itself with this split project
 Gnome 3 default shell is much better
 I dislike Unity, Gnome 3 default shell is alien technology!
 None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

resultmore




 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
News RSS   
Discussion RSS   
Events RSS   

Participate
Groups
Forum
Add Artwork
Public API
About KDE-Look.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2001-2014 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.