Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
integrating emerge information into conky
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
chaoss
n00b
n00b


Joined: 24 Oct 2007
Posts: 1

PostPosted: Mon Nov 12, 2007 5:21 am    Post subject: integrating emerge information into conky Reply with quote

i have made a script with perl to display information in conky so that every time there is something emerging, it is shown on the desktop.


here is the script if anyone is interested:
Code:
 ${exec ps -o "%t %C" -C emerge|grep :|perl -pe 's/\n/  /';ps -o "%t %C %a" -C emerge |grep emerge | perl -pe 's/.*(emerge)/emerging/'}


it displays how long it's emerging, cpu usage, and what it's emerging with --options
anyways, it's a nice script, but when there is a huge list of things to emerge, my whole conky gets pushed over to the left (it's aligned to the right), and it looks very horrible and messed up.

my plan is this: the picture would explain it well. i want to integrate the title of the window that is emerging something, into conky, so it would display the text "emerge: (1 of 1) blah blah blah"

plan png



help would be appreciated.
thank you in advance.

ihor.
Back to top
View user's profile Send private message
entox
n00b
n00b


Joined: 19 Jun 2005
Posts: 36

PostPosted: Mon Nov 12, 2007 7:49 am    Post subject: Reply with quote

He
maybe an idea would be to take the log file of emerge:
Code:
tail /var/log/emerge.log|grep emerge


Entox
Back to top
View user's profile Send private message
mark_alec
Bodhisattva
Bodhisattva


Joined: 11 Sep 2004
Posts: 6066
Location: Melbourne, Australia

PostPosted: Mon Nov 12, 2007 10:15 am    Post subject: Reply with quote

Moved from Portage & Programming to Documentation, Tips & Tricks.
_________________
www.gentoo.org.au || #gentoo-au
Back to top
View user's profile Send private message
likewhoa
l33t
l33t


Joined: 04 Oct 2006
Posts: 731
Location: Brooklyn, New York

PostPosted: Tue Nov 13, 2007 8:41 am    Post subject: Reply with quote

chaoss checkout my conky thread.

https://forums.gentoo.org/viewtopic-t-536617.html

also has portage related info but a little more and it uses bash instead of perl.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum