Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Conky [Part 2]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page Previous  1, 2, 3, 4 ... 13, 14, 15  Next  
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ericxx2005
Apprentice
Apprentice


Joined: 05 Apr 2005
Posts: 231
Location: 10 square miles surrounded by reality

PostPosted: Mon Jan 09, 2006 10:09 pm    Post subject: Reply with quote

BeteNoire wrote:
When I switch double buffer on - I cannot see root-tail. When I switch it off - Conky flickers.

Is there any possibility to make double-buffered Conky work properly with root-tail?


same here.

It would be pretty cool if we could change the color of the temperature graph if the cpu gets too hot, etc. I have no idea how to make that work though.
Back to top
View user's profile Send private message
drphibes
Guru
Guru


Joined: 30 Nov 2004
Posts: 432

PostPosted: Tue Jan 10, 2006 3:32 am    Post subject: Reply with quote

i agree that vertical gradients as opposed to the horizontal (time axis) gradient would make a lot of sense.....
Back to top
View user's profile Send private message
venus_to_mars
n00b
n00b


Joined: 27 Sep 2004
Posts: 40

PostPosted: Fri Jan 13, 2006 7:35 am    Post subject: Reply with quote

Maybe I'm missing something obvious, but how exactly can I create my own variables inside of .conkyrc to display? I want the free memory to be displayed by taking memmax - mem, but keep getting errors when I try to do this. Additionally, is there any way to have the internet traffic automatiacally change its unit (default seems to be k/s) based upon how much traffic there is? For example, display in bits when nothing much is going on and change to mb/s when i'm downloading from newsgroups.


Thanks
Back to top
View user's profile Send private message
r00d00
n00b
n00b


Joined: 13 Feb 2004
Posts: 56

PostPosted: Fri Jan 13, 2006 11:23 am    Post subject: Conky & xtail Reply with quote

I've seen the $tail option in conky but I would much rather run xtail as is far more useful. I;ve tried ${exec xtail ...} but conky just fails to display and I receive no message at all :( Has anyone any ideas whats going on or how this may be acheived?

Thnks
Back to top
View user's profile Send private message
Skorgu
n00b
n00b


Joined: 10 Sep 2003
Posts: 39

PostPosted: Sun Jan 22, 2006 3:16 am    Post subject: Reply with quote

I'm trying to use the basic, included .conkyrc from the 1.3.5 ebuild and everything seems to work except double buffering.

Code:
skorgu@dukeleto ~ $ conky
Conky: drawing to root window
Conky: failed to set up double buffer
Conky: drawing to single buffer


Any ideas?

[Edit]

Argh, I'm braindead tonight. I'm running modular xorg 7.0 and FVWM 2.5.16 with fvwm-crystal 3.0 and gentoo-sources 2.6.14-gentoo-r5
_________________
"I paid for four wheels, make 'em all drive"
Back to top
View user's profile Send private message
brenden
l33t
l33t


Joined: 09 Mar 2004
Posts: 710
Location: Calgary, AB

PostPosted: Sun Jan 22, 2006 3:23 am    Post subject: Reply with quote

Skorgu wrote:
I'm trying to use the basic, included .conkyrc from the 1.3.5 ebuild and everything seems to work except double buffering.

Code:
skorgu@dukeleto ~ $ conky
Conky: drawing to root window
Conky: failed to set up double buffer
Conky: drawing to single buffer


Any ideas?

[Edit]

Argh, I'm braindead tonight. I'm running modular xorg 7.0 and FVWM 2.5.16 with fvwm-crystal 3.0 and gentoo-sources 2.6.14-gentoo-r5

do you have
Code:
Load  "dbe"

in the Section "Module" of your xorg.conf?
Back to top
View user's profile Send private message
Skorgu
n00b
n00b


Joined: 10 Sep 2003
Posts: 39

PostPosted: Mon Jan 23, 2006 2:10 am    Post subject: Reply with quote

I do now :oops:

Just to save others the embarrasment, maybe that should be in the first post of this or the first conky thread? Searching for that particular error string is hard because the forum search cuts out all the useful bits.
_________________
"I paid for four wheels, make 'em all drive"
Back to top
View user's profile Send private message
BeteNoire
Veteran
Veteran


Joined: 25 Sep 2005
Posts: 1827

PostPosted: Mon Jan 23, 2006 2:14 am    Post subject: Reply with quote

Why Conky doesn't tail? I put
Code:
 ${tail /var/log/syslog 5}
in my .conkyrc and can't see any logtail neither error messages on Conkys startup.
_________________
powered by power plant
Back to top
View user's profile Send private message
brenden
l33t
l33t


Joined: 09 Mar 2004
Posts: 710
Location: Calgary, AB

PostPosted: Mon Jan 23, 2006 4:36 am    Post subject: Reply with quote

BeteNoire wrote:
Why Conky doesn't tail? I put
Code:
 ${tail /var/log/syslog 5}
in my .conkyrc and can't see any logtail neither error messages on Conkys startup.

Its broken in 1.3.5, either use 1.3.4, wait for the next release, or use ${exec tail} instead.
Back to top
View user's profile Send private message
69_rs_ss
n00b
n00b


Joined: 26 Dec 2003
Posts: 65
Location: NY, USA

PostPosted: Tue Jan 24, 2006 2:44 am    Post subject: Reply with quote

I am running conky 1.3.5 and it was working great until I tried to add a variable. When trying to use the tcp_portmon variable, I am receiving an error stating "Conky: unknown variable tcp_portmon". Has anyone seen this?
Back to top
View user's profile Send private message
drphibes
Guru
Guru


Joined: 30 Nov 2004
Posts: 432

PostPosted: Tue Jan 24, 2006 5:00 am    Post subject: Reply with quote

The port monitors are for ip4 only. If you are running an ip6 box, these variables are disabled during the configure, i.e. ip6 implies --disable-portmon.
Back to top
View user's profile Send private message
brenden
l33t
l33t


Joined: 09 Mar 2004
Posts: 710
Location: Calgary, AB

PostPosted: Tue Jan 24, 2006 5:12 am    Post subject: Reply with quote

69_rs_ss wrote:
I am running conky 1.3.5 and it was working great until I tried to add a variable. When trying to use the tcp_portmon variable, I am receiving an error stating "Conky: unknown variable tcp_portmon". Has anyone seen this?

re-emerge conky after doing:
Code:
echo "app-admin/conky -ipv6" >> /etc/portage/package.use

and next time read the warnings from the ebuilds.
Back to top
View user's profile Send private message
69_rs_ss
n00b
n00b


Joined: 26 Dec 2003
Posts: 65
Location: NY, USA

PostPosted: Tue Jan 24, 2006 5:44 am    Post subject: Reply with quote

That worked great thanks. I had thought I had disabled ipv6 but I guess I didn't. Thanks again.
Back to top
View user's profile Send private message
r00d00
n00b
n00b


Joined: 13 Feb 2004
Posts: 56

PostPosted: Tue Jan 24, 2006 11:04 am    Post subject: cokny & tail Reply with quote

For all those not happy with conky and tail, I wanted to run xtail but just couldn't get it working well.

Try root-tail - its very cool, configurable easy to setup and very very useful.

BTW I mean running root-tail on its own not as part of conkyrc
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Wed Jan 25, 2006 3:24 pm    Post subject: Reply with quote

i've got a segfault when using my normal conkyrc after an update to 1.3.5
if i start conky with the basic conkyrc it starts fine. the segfault isn't giving me any information on where to look.

here's my .conkyrc, i need some help finding the thing where conky 1.3.5 segfaults on an 1.3.4 does not:
Code:
# conky configuration
background yes
font -adobe-helvetica-medium-r-normal--14-*-*-*-*-*-iso8859-*
use_xft yes
xftfont Bitstream Vera Sans Mono:size=14
xftalpha 0.8
# out_to_console no
mail_spool $MAIL
update_interval 5.0
total_run_times 0
own_window no
own_window_transparent yes
double_buffer no
#own_window_colour #444444
#
#maximum_width 1280
minimum_size 10 5
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
#
default_color green
default_shade_color grey70
default_outline_color grey70
alignment top_right
gap_x 15
gap_y 45
#
no_buffers yes
uppercase no
cpu_avg_samples 3
net_avg_samples 3
override_utf8_locale no
use_spacer no
#${color gray50}${tail /var/log/emerge.log 7 10}
TEXT
${color #444444} ${time %a, }${color #555555}${time %B %e %G}
${color #444444} ${time %Z,    }${color #555555}${time %H:%M:%S}
${color #444444} UpTime: ${color #555555}$uptime
${color #DDDDDD}${hr 2}
${color #444444} Highest CPU:
${color #DD0000}  ${top name 1}${top_mem cpu 1}
${color #555555}  ${top name 2}${top_mem cpu 2}
${color #555555}  ${top name 3}${top_mem cpu 3}
${color #555555}  ${top name 4}${top_mem cpu 4}
${color #555555}
${color #444444} Highest MEM:
${color #DD0000}  ${top_mem name 1}${top_mem mem 1}
${color #555555}  ${top_mem name 2}${top_mem mem 2}
${color #555555}  ${top_mem name 3}${top_mem mem 3}
${color #555555}  ${top_mem name 4}${top_mem mem 4}
${color #DDDDDD}${hr 2}
${color #444444} eth0:${color #555555} ${addr eth0}
${color #555555} D: ${downspeed eth0} k/s ${alignr}U: ${upspeed eth0} k/s
${color #DDDDDD}${downspeedgraph eth0 40,120 DDDDDD 444444}$alignr${color #DDDDDD}${upspeedgraph etho 40,120 444444 999999 0}
${color #444444} ath0:${color #555555} ${addr ath0}
${color #555555} D: ${downspeed ath0} k/s ${alignr}U: ${upspeed ath0} k/s
${color #DDDDDD}${downspeedgraph ath0 40,120 DDDDDD 444444}$alignr${color #DDDDDD}${upspeedgraph ath0 40,120 444444 DDDDDD 0}
${color #DDDDDD}${hr 2}
${color #444444} ROOT: ${color #555555}${fs_free_perc /}% ${fs_free /}/${fs_size /}
${if_mounted /mnt/hda2}${color #444444} HDA2: ${color #555555}${fs_free_perc /mnt/hda2}% ${fs_free /mnt/hda2}/${fs_size /mnt/hda2}${else}${color #444444} HDA2: ${color #555555}not mounted${endif}
${if_mounted /mnt/hda5}${color #444444} HDA5: ${color #555555}${fs_free_perc /mnt/hda5}% ${fs_free /mnt/hda5}/${fs_size /mnt/hda5}${else}${color #444444} HDA5: ${color #555555}not mounted${endif}
${color #DDDDDD}${hr 2}
${color #444444} RAM :${color #DD0000} $memperc% ${color #555555}$mem/$memmax
${color #444444} SWAP:${color #DD0000} $swapperc% ${color #555555}$swap/$swapmax
${color #DDDDDD}${hr 2}
${color #444444} DIO :${color #555555} $diskio
${color #DDDDDD} ${diskiograph 30,240 DDDDDD 444444}
${color #444444} CPU :${color #555555} $freq ${color #DD0000}$cpu% ${color #444444} ${execi 6 cpufreq-info -p | cut -c16-}
${color #DDDDDD} ${cpugraph 30,240 DDDDDD 444444}
${color #DDDDDD}${hr 2}

_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Wed Jan 25, 2006 3:41 pm    Post subject: Reply with quote

ok i tried some stuf, and it were the "if mounted" lines that caused the segfault, any id's on how to get them back? anyone else got the segfaults?
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
frary
Guru
Guru


Joined: 27 Jan 2004
Posts: 545

PostPosted: Wed Jan 25, 2006 3:49 pm    Post subject: Reply with quote

Sade wrote:
ok i tried some stuf, and it were the "if mounted" lines that caused the segfault, any id's on how to get them back? anyone else got the segfaults?


Same Problem here. I am laso using the "if mounted" command. Staying with 1.3.4 so far...

Greets

T
_________________
Mitleid bekommt man geschenkt;
Neid muss man sich hart erarbeiten!

I.Walter
Back to top
View user's profile Send private message
drphibes
Guru
Guru


Joined: 30 Nov 2004
Posts: 432

PostPosted: Wed Jan 25, 2006 7:00 pm    Post subject: Reply with quote

yes, there is a known bug with the if_ / endif blocks in conky. you'll get a segmentation fault if you use them. it's a high-priority item to be fixed.
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Mon Jan 30, 2006 11:42 am    Post subject: Reply with quote

for all of u who are interested:
i've written a little script for a nice output of the emerge.log.
i use it for in my conky, lets me know if emering has finnished.
it's very minimalistic and easy to modify.

it posts any number of lines with the buildtimes of the current and the previous builds like so:
Code:
(0:04) (60 of 74) app-text/wv2-0.2.2 ready
(4:28) (61 of 74) app-office/koffice-1.4.2-r6 emerging
and here is the script:
Code:
#!/bin/bash
#script for calculating the time a ebuild is on it's way.

if [ -z $1 ]
then
   limit=3
else
   limit=$1
fi

count=$limit
while [ $count -gt 0 ]
do
      # getting the ebuild info from the /var/log/emerge.log
   startline=`tac /var/log/emerge.log | grep \> -m$count | tail -n 1`
   currentbuild=`echo $startline | cut -c24-`
        endline=`tac /var/log/emerge.log | grep "$currentbuild" | grep ::: `
   startdate=`echo $startline | cut -c-10`
   enddate=`echo $endline | cut -c-10`
   if [ -z $enddate ]
   then
      enddate=`date +%s`
      status=emerging
   else
      status=ready
   fi
   
   # calculating the time to a human readable format
   buildseconds=$(( $enddate - $startdate ))
   buildminutes=$(( $buildseconds / 60 ))
   buildhours=$(( $buildseconds / 3600 ))
   buildminutesleft=$(( $buildminutes - $(( $buildhours * 60 )) ))
   
   # making the minutes always two digits
   if [ $buildminutesleft -lt 10 ]
   then
      buildminutesleft=`echo "0${buildminutesleft}"`
   fi
   echo "(${buildhours}:${buildminutesleft}) ${currentbuild%to*}$status"
   count=$(( $count - 1 ))
done
exit 0
i post this because i feel the need to share :D

[edit]
updated the script,
it's now shorter and smarter
usage: <scriptname> <number>
now displays the amount of lines u want, defaults to 3
[/edit]
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |


Last edited by Sade on Tue Jan 31, 2006 2:10 pm; edited 3 times in total
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Mon Jan 30, 2006 11:58 am    Post subject: Reply with quote

Hi all...

I'm trying to install conky on a neighbor's ubuntu box. The application fails to start with the following error:
Code:
Conky: can't open '/sys/bus/i2c/devices/1-0043/temp2_input' : No such file or directory
please fix i2c or remove it from Conky


Does anyone have thoughts on how to remove it??

Thanks!
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Mon Jan 30, 2006 12:03 pm    Post subject: Reply with quote

cgmd wrote:
Hi all...

I'm trying to install conky on a neighbor's ubuntu box. The application fails to start with the following error:
Code:
Conky: can't open '/sys/bus/i2c/devices/1-0043/temp2_input' : No such file or directory
please fix i2c or remove it from Conky


Does anyone have thoughts on how to remove it??

Thanks!


u could just remove the i2c line from your .conkyrc
but if you want information about your temps u should supply conky the right path to the sernsors.
not so long a go the was a increddible helpfull post in this thread by drphibes. u could search for it.
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Mon Jan 30, 2006 12:21 pm    Post subject: Reply with quote

Sade wrote:
Quote:
u could just remove the i2c line from your .conkyrc
but if you want information about your temps u should supply conky the right path to the sernsors.
not so long a go the was a increddible helpfull post in this thread by drphibes. u could search for it.


Thanks, Sade, that got it going...

Now that it's up, I see that double buffering isn't working, and I get the following message:
Code:
Conky: drawing to subwindow of root window (1400010)
Conky: failed to set up double buffer
Conky: drawing to single buffer


Any ideas on that one, as well?
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
Sade
Guru
Guru


Joined: 22 Mar 2005
Posts: 406
Location: Netherlands - Eindhoven

PostPosted: Mon Jan 30, 2006 12:57 pm    Post subject: Reply with quote

cgmd wrote:
Now that it's up, I see that double buffering isn't working, and I get the following message:
Code:
Conky: drawing to subwindow of root window (1400010)
Conky: failed to set up double buffer
Conky: drawing to single buffer


Any ideas on that one, as well?


yeah, look 17 posts up, brenden gives a suggenstion to that one.
_________________
| 1.6Ghz atom N270 | adopt an unanswerd post | a nice way to post a config file |
Back to top
View user's profile Send private message
cgmd
Veteran
Veteran


Joined: 17 Feb 2005
Posts: 1585
Location: Louisiana

PostPosted: Tue Jan 31, 2006 1:33 am    Post subject: Reply with quote

Sade wrote:
Quote:
yeah, look 17 posts up, brenden gives a suggenstion to that one.


I must be blind! :oops:

Thanks, again!
_________________
"Primum non nocere" ---Galen
Back to top
View user's profile Send private message
Geministorm
n00b
n00b


Joined: 10 May 2005
Posts: 50
Location: Melbourne, FL USA

PostPosted: Tue Jan 31, 2006 2:01 am    Post subject: Reply with quote

drphibes wrote:
ok this python script, xmms.py, will work with either xmms-infopipe or bmp-infopipe:
Code:
#!/usr/bin/env python

...
<snipped for brevity>
...

make sure to chmod 755 xmms.py and then use it in .conkyrc, for example, as follows:
Code:
${execi 3 ~/bin/xmms.py Title}
${execi 3 ~/bin/xmms.py Status} ${execi 3 ~/bin/xmms.py Position} ${execi 3 ~/bin/xmms.py Time}

.

I'm not much of a coder, but I was thinking this could be done with a shell script, perhaps a little more simplistic?

xmms-find.sh
Code:


#!/bin/sh
grep $1 /tmp/xmms-info | awk '{$1 = ""; print}'



I don't use the xmms-infopipe or even put xmms in my conky, so it might not work. I took the xmms-infopipe output listed above, and was able to output what I desired using these inputs;
Quote:

^Status
playlist
^Currently
^Position
^Time
bitrate
Frequency
Channels
^Title
^File


So, I guess it would work like this in .conkyrc, as in your example;

Code:

${execi 3 ~/bin/xmms-find.sh ^Title}
${execi 3 ~/bin/xmms-find.sh ^Status} ${execi 3 ~/bin/xmms-find.sh ^Position} ${execi 3 ~/bin/xmms.py ^Time}


See what you think?
.
_________________
Abit NF7-S (Realtek RTL8201, RTL8801b, ALC650, SiL3112a)
1GB (2x 512MB) DDR400, dual-channel
AMD 2500+ (Barton) XP (@10x200)
200GB Maxtor SATA
120GB Maxtor U-ATA
45GB IBM U-ATA
Plextor PX-712 DVD+/-RW
AOpen 16x DVD
OS: Gentoo/WinXP
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3, 4 ... 13, 14, 15  Next
Page 3 of 15

 
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