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

Goto page Previous  1, 2, 3 ... 8, 9, 10 ... 29, 30, 31  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Nuteater
Apprentice
Apprentice


Joined: 25 Sep 2003
Posts: 193
Location: Jyväskylä, Finland

PostPosted: Wed Jul 27, 2005 2:32 pm    Post subject: Reply with quote

It's good that someone is continuing the good work the torsmo developers
started. :)

If feature requests are welcome, the final feature I would like so that I could
ditch gkrellm for good is a scrolling histogram-like display of cpu, disk and
bandwidth usage. Sometimes just seeing the current usage is not informative
enough, and seeing the big picture requires to see the recent history as well.

That, and allowing conky being seen through transparent windows would make
my beautiful, minimalistic desktop complete :wink:, but as mentioned before,
this is probably a xorg issue.
_________________
I am Nuteater, hear me roar.
Back to top
View user's profile Send private message
brenden
l33t
l33t


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

PostPosted: Wed Jul 27, 2005 3:52 pm    Post subject: Reply with quote

Nuteater wrote:
It's good that someone is continuing the good work the torsmo developers
started. :)

If feature requests are welcome, the final feature I would like so that I could
ditch gkrellm for good is a scrolling histogram-like display of cpu, disk and
bandwidth usage. Sometimes just seeing the current usage is not informative
enough, and seeing the big picture requires to see the recent history as well.

That, and allowing conky being seen through transparent windows would make
my beautiful, minimalistic desktop complete :wink:, but as mentioned before,
this is probably a xorg issue.

This is something I already plan on doing, hopefully this weekend.
Back to top
View user's profile Send private message
jack_mort
Apprentice
Apprentice


Joined: 30 Jan 2003
Posts: 167

PostPosted: Wed Jul 27, 2005 4:55 pm    Post subject: Reply with quote

brenden wrote:
Your logic is correct, but the syntax is wrong. I changed it to:
Code:
if (strstr(s, "UTF-8") || strstr(s, "utf-8"))

Thanks for pointing this out.

Hummm... maybe you should also add "utf8" (and why not UTF8 ;)) in the test, as my locale -a output shows me locales with utf8 and not UTF-8 or utf-8 :)
Back to top
View user's profile Send private message
ndreas
n00b
n00b


Joined: 02 Jul 2002
Posts: 36
Location: Gothenburg, Sweden

PostPosted: Wed Jul 27, 2005 5:24 pm    Post subject: Reply with quote

A small feature request...

It would be nice if the MPD features could include total time, elapsed time and maybe remaining time for the currently playing song. For me, the bar is not quite enough (50% of what, 2 minutes or 10?). I could probably implement it myself but I would need time, which I really don't have, to get familiar with the code, and I suspect it is not that big an addition.

Ditching the once-a-second-executed mpc would be sweeet :wink:

Very nice work, by the way.
Back to top
View user's profile Send private message
Meqif
Tux's lil' helper
Tux's lil' helper


Joined: 09 Mar 2003
Posts: 103
Location: Portugal

PostPosted: Wed Jul 27, 2005 7:00 pm    Post subject: Reply with quote

jack_mort wrote:
brenden wrote:
Your logic is correct, but the syntax is wrong. I changed it to:
Code:
if (strstr(s, "UTF-8") || strstr(s, "utf-8"))

Thanks for pointing this out.

Hummm... maybe you should also add "utf8" (and why not UTF8 ;)) in the test, as my locale -a output shows me locales with utf8 and not UTF-8 or utf-8 :)


Seconded: I added utf8, not utf-8, for the same reason. ;)
Back to top
View user's profile Send private message
brenden
l33t
l33t


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

PostPosted: Wed Jul 27, 2005 11:53 pm    Post subject: Reply with quote

yos0n wrote:
A small feature request...

It would be nice if the MPD features could include total time, elapsed time and maybe remaining time for the currently playing song. For me, the bar is not quite enough (50% of what, 2 minutes or 10?). I could probably implement it myself but I would need time, which I really don't have, to get familiar with the code, and I suspect it is not that big an addition.

Ditching the once-a-second-executed mpc would be sweeet :wink:

Very nice work, by the way.

This is something I probably should have already done, but I'm lazy.
Back to top
View user's profile Send private message
Finkregh
n00b
n00b


Joined: 28 Jul 2005
Posts: 3

PostPosted: Thu Jul 28, 2005 1:23 am    Post subject: Reply with quote

i changed to ubuntu some time ago and well.. now i changed from torsmo to Conky:

http://www.ubuntu-de.org/wiki/windowmanager:conky
http://gamesuniverse.net/schulblog/2005/07/finkregh/conky-howto/

that is what i wrote. Perhaps do you want to add/change something when you can read german ;)

thx for the combined power in these threads here ... so far,
Fink
Back to top
View user's profile Send private message
brenden
l33t
l33t


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

PostPosted: Thu Jul 28, 2005 1:44 am    Post subject: Reply with quote

Finkregh wrote:
i changed to ubuntu some time ago and well.. now i changed from torsmo to Conky:

http://www.ubuntu-de.org/wiki/windowmanager:conky
http://gamesuniverse.net/schulblog/2005/07/finkregh/conky-howto/

that is what i wrote. Perhaps do you want to add/change something when you can read german ;)

thx for the combined power in these threads here ... so far,
Fink

Looks great for the most part. One thing I noticed, however, is that you have some ${exec ps} thing. As of conky 1.1, this functionality is built into conky via the ${top}, and as of 1.2 ${top_mem}. I'd suggest using that, since it's significantly faster. Also, although I don't know anything other then English, seeing "mv conky /usr/local/bin" made me a little vervous. This should be done via "make install".
Back to top
View user's profile Send private message
Finkregh
n00b
n00b


Joined: 28 Jul 2005
Posts: 3

PostPosted: Thu Jul 28, 2005 2:20 am    Post subject: Reply with quote

well thx so far, ill read it again tomorrow ;)
in germany it is 04:00 in the morning... soo... maybe i didnt "make install" because of that...

stab me writing such a text when i am so tired :>
Back to top
View user's profile Send private message
elektronisch
n00b
n00b


Joined: 08 Dec 2004
Posts: 12

PostPosted: Thu Jul 28, 2005 2:50 am    Post subject: Reply with quote

brenden wrote:
Meqif wrote:
The latest cvs revision isn't displaying utf8 properly, it reverted to the old behavior. :(

EDIT: It's related to the detection of utf8 in the environment. I forced utf8 by changing "int utf8_mode = 0;" to "int utf8_mode = 1;" and it works perfectly.

EDIT2: Changing just
Code:
if (strstr(s, "UTF-8"))
to
Code:
if (strstr(s, "UTF-8")||(s, "utf8"))
solves it without having to mess with the utf8_mode in the beginning. I know my fix isn't properly coded but my programming knowledge is near null. :P
Code:
meqif@envy:: locale -a|grep UTF
meqif@envy:: locale -a|grep utf
en_US.utf8
pt_PT.utf8

Now you know why I fixed the problem this way. :)

Your logic is correct, but the syntax is wrong. I changed it to:
Code:
if (strstr(s, "UTF-8") || strstr(s, "utf-8"))

Thanks for pointing this out.


you're syntax is correct except its utf8 instead of utf-8
_________________
Slackware user, but for some reason I'm here.
Back to top
View user's profile Send private message
brenden
l33t
l33t


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

PostPosted: Thu Jul 28, 2005 3:31 am    Post subject: Reply with quote

elektronisch wrote:
you're syntax is correct except its utf8 instead of utf-8

Yeah, I'll make it check for everything. My locale returns:
Code:
LC_ALL=en_US.UTF-8

so that is what I was going by.

I did this (which will hopefully keep everything & everyone happy):
Code:
if (strstr(s, "UTF-8") || strstr(s, "utf-8") || strstr(s, "UTF8") || strstr(s, "utf8"))


Last edited by brenden on Thu Jul 28, 2005 3:37 am; edited 1 time in total
Back to top
View user's profile Send private message
brenden
l33t
l33t


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

PostPosted: Thu Jul 28, 2005 3:33 am    Post subject: Reply with quote

Finkregh wrote:
well thx so far, ill read it again tomorrow ;)
in germany it is 04:00 in the morning... soo... maybe i didnt "make install" because of that...

stab me writing such a text when i am so tired :>

Thanks a lot for the contribution. It's great when people help the project out. I just wanted to give you my thoughts.
Back to top
View user's profile Send private message
elektronisch
n00b
n00b


Joined: 08 Dec 2004
Posts: 12

PostPosted: Thu Jul 28, 2005 4:34 am    Post subject: Reply with quote

Just a suggestion..

use strcasecmp so you dont have to clutter it all up by checking a string for different case variations.

Example:

if(strcasecmp(s, "utf8") == 0 || strcasecmp(s, "utf-8") == 0 )) {

}

P.s, how do I contribute to this project besides going through you? Is there a way I can submit changes to a repository? This project seems fun :)
_________________
Slackware user, but for some reason I'm here.
Back to top
View user's profile Send private message
brenden
l33t
l33t


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

PostPosted: Thu Jul 28, 2005 4:46 am    Post subject: Reply with quote

elektronisch wrote:
Just a suggestion..

use strcasecmp so you dont have to clutter it all up by checking a string for different case variations.

Example:

if(strcasecmp(s, "utf8") == 0 || strcasecmp(s, "utf-8") == 0 )) {

}

P.s, how do I contribute to this project besides going through you? Is there a way I can submit changes to a repository? This project seems fun :)

Register on sf.net and email me your sf.net account username. I will happily give you cvs access.

strcasecmp won't work, since there is other stuff in the string. Another option is tolower'ing the string first, but I didn't feel like mucking with it. Feel free to have at it. I'm currently working on creating the special scrolling graph object.
Back to top
View user's profile Send private message
ryanc
n00b
n00b


Joined: 19 May 2003
Posts: 2

PostPosted: Thu Jul 28, 2005 4:02 pm    Post subject: Reply with quote

the last version of torsmo had a feature for displaying your current CPU freqeuence a la $freq. Was Conky
a fork from that version and does it (Conky) still have that feature?

i didn't notice it in the README but I tend to be blind sometimes :)

later.
ryanc
Back to top
View user's profile Send private message
Finkregh
n00b
n00b


Joined: 28 Jul 2005
Posts: 3

PostPosted: Thu Jul 28, 2005 4:05 pm    Post subject: Reply with quote

well a far as i know.. yes ^^
Back to top
View user's profile Send private message
brenden
l33t
l33t


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

PostPosted: Thu Jul 28, 2005 4:41 pm    Post subject: Reply with quote

ryanc wrote:
the last version of torsmo had a feature for displaying your current CPU freqeuence a la $freq. Was Conky
a fork from that version and does it (Conky) still have that feature?

i didn't notice it in the README but I tend to be blind sometimes :)

later.
ryanc

Yes, you can use $freq to get the cpu frequency
Back to top
View user's profile Send private message
jack_mort
Apprentice
Apprentice


Joined: 30 Jan 2003
Posts: 167

PostPosted: Thu Jul 28, 2005 7:24 pm    Post subject: Reply with quote

I've just updated with the cvs code, and it's quite unusable : there's too much space drawn between lines, making the last ones not to be displayed... maybe you made some changes in text height while introducing graphs ?
Back to top
View user's profile Send private message
elektronisch
n00b
n00b


Joined: 08 Dec 2004
Posts: 12

PostPosted: Thu Jul 28, 2005 8:37 pm    Post subject: Sent you a message on sf.net Reply with quote

Sent you a message on sf.net.

Also, what editor are you using? The formatting near the bottom of conky.c is completely screwed up.

Thanks,
Jay
_________________
Slackware user, but for some reason I'm here.
Back to top
View user's profile Send private message
brenden
l33t
l33t


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

PostPosted: Fri Jul 29, 2005 1:26 am    Post subject: Reply with quote

jack_mort wrote:
I've just updated with the cvs code, and it's quite unusable : there's too much space drawn between lines, making the last ones not to be displayed... maybe you made some changes in text height while introducing graphs ?

Yes, I did make some changes. I didn't notice this when I was initially testing it, but the code is probably quite buggy.
Back to top
View user's profile Send private message
brenden
l33t
l33t


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

PostPosted: Fri Jul 29, 2005 1:27 am    Post subject: Re: Sent you a message on sf.net Reply with quote

elektronisch wrote:
Sent you a message on sf.net.

Also, what editor are you using? The formatting near the bottom of conky.c is completely screwed up.

Thanks,
Jay

This has to do with some of the macros in conky.c. Most editors (as well as indent) don't know what to do about it. I gave up messing with it. I don't feel like expanding the macros just to make the indentation look nice.
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Sat Jul 30, 2005 6:51 am    Post subject: Reply with quote

I've just discovered conky a few days ago and i only can thank you for yr. great work!

I use the built-in mpd options, but i listen to a lot of music with characters such as "ção", "à"... With the little script that i called from torsmo they are displayed correctly, but with conky built-in, they are not. Is there any workaround?

cheers

Edit. Oops, forgot it: i am using the (by now) latest CVS.
Back to top
View user's profile Send private message
brenden
l33t
l33t


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

PostPosted: Sat Jul 30, 2005 7:02 am    Post subject: Reply with quote

galiza_ceive wrote:
I've just discovered conky a few days ago and i only can thank you for yr. great work!

I use the built-in mpd options, but i listen to a lot of music with characters such as "ção", "à"... With the little script that i called from torsmo they are displayed correctly, but with conky built-in, they are not. Is there any workaround?

cheers

Edit. Oops, forgot it: i am using the (by now) latest CVS.

Hmm...the latest conky (CVS) has support for UTF-8 characters. I've tested with mpd and special characters, and it seems okay. Are your locale settings proper? (ie locale -a) and are you using XFT?

XFT is needed to use UTF-8.
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Sat Jul 30, 2005 7:09 am    Post subject: Reply with quote

I don't use UTF8 as locale (pt_PT@euro), and yes i am using xft.

With this locale configuration the script i used in tormo shows correctly the titles...

thanks
Back to top
View user's profile Send private message
brenden
l33t
l33t


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

PostPosted: Sat Jul 30, 2005 7:18 am    Post subject: Reply with quote

galiza_ceive wrote:
I don't use UTF8 as locale (pt_PT@euro), and yes i am using xft.

With this locale configuration the script i used in tormo shows correctly the titles...

thanks

I can add an "override_utf8_locale" option to the config, or something of the sort. This might solve your issue.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Desktop Environments All times are GMT
Goto page Previous  1, 2, 3 ... 8, 9, 10 ... 29, 30, 31  Next
Page 9 of 31

 
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