View previous topic :: View next topic |
Author |
Message |
chaoss n00b
Joined: 24 Oct 2007 Posts: 1
|
Posted: Mon Nov 12, 2007 5:21 am Post subject: integrating emerge information into conky |
|
|
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 |
|
|
entox n00b
Joined: 19 Jun 2005 Posts: 36
|
Posted: Mon Nov 12, 2007 7:49 am Post subject: |
|
|
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 |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Mon Nov 12, 2007 10:15 am Post subject: |
|
|
Moved from Portage & Programming to Documentation, Tips & Tricks. _________________ www.gentoo.org.au || #gentoo-au |
|
Back to top |
|
|
likewhoa l33t
Joined: 04 Oct 2006 Posts: 778 Location: Brooklyn, New York
|
|
Back to top |
|
|
|
|
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
|
|