maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Conky now in fremantle extras-testing (https://talk.maemo.org/showthread.php?t=37698)

fnordianslip 2009-12-18 17:45

Conky now in fremantle extras-testing
 
Conky build 1.1 is now available in extras-testing for fremantle.

http://homepage.mac.com/darren.long/...logosmall4.png

It looks like this (thanks to rcull for his config tweaks):
http://homepage.mac.com/darren.long/...221-042111.png

The default conky.conf is installed in /etc/conky/conky.conf. There is a conky.sh launcher script invoked by the desktop file that launches conky with /home/user/MyDocs/conky.conf if that config file exists, otherwise it reverts to the default. The default conf uses the droid fonts, so those are installed as a dependency. It is all optified.

Conky doesn't run as a widget, yet, just as a regular application.

Change log
conky (1.6.1-0maemo5-1.1) freemantle; urgency=low
Fixed broken install of default conky.conf in /etc/conky/
Using conky.conf from rcull, with some tweaks.


conky (1.6.1-0maemo5-1.0) freemantle; urgency=low
debian/control file now contains BugTracker URL.
debian/control contains updated description.
First release build for extras.


conky (1.6.1-0maemo5-0.8) freemantle; urgency=low
Desktop file now runs launcher script.
Launcher script (conky.sh) now launches with conky.conf from
/home/user/MyDocs/ if found, otherwise defaults to
/etc/conky/conky.conf.
Default conf now properly aligns the filesystem bars.
Default conf now hides info for MyDocs and mmc1 when they are unmounted.
Default conf now masks properties for gprs0 and wlan0 when they are not
connected.


Edits
Mon 21st Dec 2009. Edited for build 1.1
Tue 22nd Dec 2009. No more votes needed for build 1.1

d-iivil 2009-12-18 19:04

Re: Conky now in fremantle extras-testing
 
Nice one :)

texaslabrat 2009-12-18 19:29

Re: Conky now in fremantle extras-testing
 
wow, great app!

jaysire 2009-12-18 21:05

Re: Conky now in fremantle extras-testing
 
Quote:

Originally Posted by fnordianslip (Post 433650)
You can tweak/replace the installed conky.conf, or you can put your own somewhere else (i.e. ~/.conky.conf) and edit (or clone/modify) the desktop file in /usr/share/applications/hildon/conky.desktop.

Thanks! Now for getting it as an overlay on the desktop... ;)

Anyway: How did you get the file system bars even like that? Mine all have different lengths and it looks bad, since the left margin isn't straight.

I managed to fix it by adding / removing spaces in the conf file, but that won't keep it good looking for much longer, when the usage numbers change...

fnordianslip 2009-12-18 21:16

Re: Conky now in fremantle extras-testing
 
Quote:

Originally Posted by jaysire (Post 433847)
Thanks! Now for getting it as an overlay on the desktop... ;)

Anyway: How did you get the file system bars even like that? Mine all have different lengths and it looks bad, since the left margin isn't straight.

I managed to fix it by adding / removing spaces in the conf file, but that won't keep it good looking for much longer, when the usage numbers change...

Ah, the file-system bars. Yep, I cheated with spaces as well ;)

All suggested tweaks to the default conky.conf considered. I suppose I should put a launcher script in the package that checks for a local ~/conky.conf and uses that instead of the default if one if present.

When it gets into extras, we can run the traditional "Post your conky" thread :D

fnordianslip 2009-12-18 22:04

Re: Conky now in fremantle extras-testing
 
Aha.

Found a solution to the fs bars here.

That bit of my conky.conf now looks like:
Code:

${color grey}rootfs    $color${fs_free /}/${fs_size /} ${color grey}free $alignr  $color${fs_bar 8,440 /}
${color grey}home      $color${fs_free /home}/${fs_size /home} ${color grey}free $alignr  $color${fs_bar 8,440 /home}
${color grey}MyDocs    $color${fs_free /home/user/MyDocs}/${fs_size /home/user/MyDocs} ${color grey}free $alignr  $color${fs_bar 8,440 /home/user/MyDocs}
${color grey}mmc1      $color${fs_free /media/mmc1}/${fs_size /media/mmc1} ${color grey}free $alignr  $color${fs_bar 8,440 /media/mmc1}

Notice the double space after alignr. it is actually the first space that gets right-aligned, shoving the bar up against the edge of the window.

I'll tweak the default conf in the next package version.

That One Guy 2009-12-18 22:11

Re: Conky now in fremantle extras-testing
 
Very geeky. And I don't mean that in a bad way. Seems to work well on my n900, and I will likely keep it.

I'll still stick to top and df, but this app is nice for a quick overview.

I'd vote on it, but I don't really have the motivation to sign up to another part of the maemo.org domain.

Either way, thank you.

jaysire 2009-12-18 22:43

Re: Conky now in fremantle extras-testing
 
I made my own tweak: A battery percentage line. I put mine on a separate line, but I guess some people would want it at the top with the cpu monitor...

Anyways, here's my addition to conky.conf (I put it before the CPU Usage -line):

Quote:

${color grey}Battery: $color ${head /home/user/batterylevel 1}%
It simply outputs the first line from the file /home/user/batterylevel, so no exciting connection to a battery-deamon here. I don't think any of Conky's built in battery commands work.

To make /home/user/batterylevel contain the actual battery level, I made the following shell script:

Quote:

#!/bin/sh
while :
do
lshal | grep battery.charge_level.percentage | awk '{print $3}' > /home/user/batterylevel
sleep 120
done
This one stores the battery charge level in the file /home/user/batterylevel every 120 seconds.

I haven't extensively tested it yet, but it seems to work for me. I also made an init-script for /etc/init.d that launches it at start (you have to symlink it from rc2.d), but I won't start spreading that before I see that there aren't any big problems with this.

Please don't use conky's "exec" to run lshal directly, since both exec and lshal are very resource intensive and will require about 40% cpu all the time just for showing you your battery level!

I would've done this with crontab instead, but there is none and very little information about alternatives that work.

new_bee 2009-12-18 22:55

Re: Conky now in fremantle extras-testing
 
working good. nice and useful app.

fnordianslip 2009-12-18 23:09

Re: Conky now in fremantle extras-testing
 
Quote:

Originally Posted by Dak (Post 433926)
Good job!

This is a useful app to me. Thanks for making it :)

Just so you know, I didn't write it myself. Thanks for the thanks though.


All times are GMT. The time now is 18:04.

vBulletin® Version 3.8.8