| Prev |   1     2   3   4     5   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Updated May 23] Conky 1.9.7 n900 edition (https://talk.maemo.org/showthread.php?t=64434)

Mentalist Traceur 2010-10-29 22:11

Re: [NEW] Conky 1.8.5 n900 edition
 
kishan, sorry - that wasn't what I meant - for me the conky process that I was killing was the one you had left over:

"8582 user 31548 S /usr/bin/conky -d -c /etc/conky/conky.conf"

The majority of my post was about that being there, because on my N900 that process was eating CPU needlessly.

I think what you were reporting is perfectly normal. Not really needing any fixing.

Mentalist Traceur 2010-10-29 22:22

Re: [NEW] Conky 1.8.5 n900 edition
 
Lol, so many people replying, I can't keep up, and I feel like I have to double post so that people don't miss me responding to them.

mrsellout: Right now, you need to manually enable Conky's rotation. My .conf file switches layouts depending on device orientation, so that you get a portrait mode-compatible layout when conky is rotated. However, I don't yet know how to enable rotation the moment conky is launched from a command I could run from within Conky.

The way I do it is I have shortcutd installed, and I have short-half-press of camera key set to toggle rotation. So when I want to use conky in portrait mode, I just press that. And then Conky itself is rotated along with the layout change. Alternatively, I believe the key combination ctrl+shift+r turns on rotation too.

I'm going to try to get this to be run from-config-file once upon Conky start hopefully within a day or two. When I make progress again I'll post another conf file.

At any rate, I'm glad you liked it. Also, you may be able to avoid the need to copy and paste the conf file's contents into a blank file if you download directly from the N900. I saved it, renamed it, and uploaded it, from the N900, and will probably continue doing so, so you may be able to avoid whatever openings/saving/renaming it in Windows causes.

mrsellout 2010-10-29 22:36

Re: [NEW] Conky 1.8.5 n900 edition
 
Quote:

Originally Posted by Mentalist Traceur (Post 857115)
mrsellout: Right now, you need to manually enable Conky's rotation. My .conf file switches layouts depending on device orientation, so that you get a portrait mode-compatible layout when conky is rotated. However, I don't yet know how to enable rotation the moment conky is launched from a command I could run from within Conky.

The way I do it is I have shortcutd installed, and I have short-half-press of camera key set to toggle rotation. So when I want to use conky in portrait mode, I just press that. And then Conky itself is rotated along with the layout change. Alternatively, I believe the key combination ctrl+shift+r turns on rotation too.

I'm going to try to get this to be run from-config-file once upon Conky start hopefully within a day or two. When I make progress again I'll post another conf file.[/QUOTE]

Right I forgot about that. One way round it would be to borrow could from other apps that use portrait & landscape mode. Forgive me I'm no programmer, but I'm going to look into the Qt tutorials, or maybe Filebox's source code to see how they do it. Maybe we could get fullscreen mode as well for a bit more real estate.

Quote:

Originally Posted by Mentalist Traceur (Post 857115)
At any rate, I'm glad you liked it. Also, you may be able to avoid the need to copy and paste the conf file's contents into a blank file if you download directly from the N900. I saved it, renamed it, and uploaded it, from the N900, and will probably continue doing so, so you may be able to avoid whatever openings/saving/renaming it in Windows causes.

Strangely that's how I did do it, Anyway got it working now.

Mentalist Traceur 2010-10-29 23:02

Re: [NEW] Conky 1.8.5 n900 edition
 
Well, do we know how to run a Qt line of code from the command line? I don't think Conky has native Qt support. However, that IS a good avenue to pursue - I applaud your motivation. Even if we don't figure out how to run Qt from conky, the knowledge from the code may be enough to know how to do it directly from command line.

Ideally, we could get Creamy Goodness to make Conky's N900 port have way to set it's own portrait-mode-enabled-by-default setting - and you just change the yes to a no or vice-versa in the conf file. Since the best way would be to just enable the already-built-into-hildon rotation enabled flag, and figure out how to make the program launch with it on or off as-per-user-configured settings (which in the case of Conky is in the .conf file entirely). Hmmm... MohammadAG did that with Modest and Hildon Settings Menu... I should prod him about that too.

But that's an extra feature request to put more burden on him, hence for the time being running commands from within conky suffices. There SHOULD be a dbus call that simulates keyboard presses. Perhaps we can find one that will toggle rotation - actually now that I think about it there should be a dbus call that will toggle rotation directly). Then you just put that in the first line (or really any line, so long as it's outside any other tags) under "Text" in the conf file, inside ${exec []} - or whatever other command it is that only runs once (as opposed to execi, which runs repeatedly per interval). Unless exec is just execi but using the default interval? *Shrug* (I'm currently working on something with python [not coding something on my own - copying latest version of code into files on my N900], so I'm useless for a few hours between now and when I finish, but I should be able to work on this after that.)

afteris 2010-10-29 23:18

Re: [NEW] Conky 1.8.5 n900 edition
 
superb! love it

kinggo 2010-10-30 16:05

Re: [NEW] Conky 1.8.5 n900 edition
 
Quote:

Originally Posted by Mentalist Traceur (Post 857101)

So
Code:

${alignr 300}Blahblah$variable blah
will place the h of the right-most "blah" against an imaginary vertical line 300 pixels away from the left edge of the screen.

In theory, I get it. But... :confused:
Code:

${color 4072a5}RAM:${goto 75}${color 3a3030}${voffset 2}${membar 16,240}
${color      }${voffset -20}${goto 110}$mem${goto 160}/ $memmax
${color      }${alignr 348}${voffset -18}$memperc%${color 4072a5}${goto 400}Mem:${color black}${memgraph 16,105 ffffff 0000ff -t}
${color 4072a5}Swap:${goto 75}${color 3a3030}${swapbar 16,240}                   
${color      }${voffset -18}${goto 110}$swap${goto 160}/ $swapmax
${color      }${alignr 301}${voffset -18}$swapperc%${color #4072a5}${goto 400}Battery: ${color}${battery_short} ${battery_volts}mV
${color 4072a5}rootfs:${goto 75}${color 3a3030}${fs_bar 16,240 /}
${color      }${voffset -18}${goto 110}${fs_used /}${goto 160}/ ${fs_size /}
${color      }${alignr 255}${voffset -20}(${fs_free /}) ${color 4072a5}${goto 400}Processes:$color $processes ${color 4072a5}Running:$color $running_processes
${color 4072a5}home:${goto 75}${color 3a3030}${fs_bar 16,240 /home}
${color      }${voffset -18}${goto 110}${fs_used /home}${goto 160}/ ${fs_size /home}
${color      }${alignr 290}${voffset -20}(${fs_free /home})${color 4072a5}${goto 400}Cell Radio: $color ${cell_radio_dbm}dBm ${cell_radio_percent}%
${if_mounted /home/user/MyDocs}${color 4072a5}MyDocs:${goto 75}${color 3a3030}${fs_bar 16,240 /home/user/MyDocs}
${color      }${voffset -18}${goto 110}${fs_used /home/user/MyDocs}${goto 160}/ ${fs_size /home/user/MyDocs}
${color      }${alignr 347}${voffset -20}(${fs_free /home/user/MyDocs})$endif${color 4072a5}${goto 400}Dio:${color black}${diskiograph /dev/mmcblk0 16,105 ffffff 00ff00 -t -1}
${if_mounted /media/mmc1}${color 4072a5}MicroSD:${goto 75}${color 3a3030}${fs_bar 16,240 /media/mmc1}
${color      }${voffset -18}${goto 110}${fs_used /media/mmc1}${goto 160}/ ${fs_size /media/mmc1}
${color      }${alignr 478}${voffset -20}(${fs_free /media/mmc1}) $endif

Values are from 255 to 478 :confused: And it looks aligned, not 100% but it doesn't differ that much as values are. On the original file, values were 525 and 490. But I split those uptime/batt and load/processes lines so I can move the graphs .
And now it does look OK but I don't know why my alignr values are all different.

afteris 2010-10-30 16:31

Re: [NEW] Conky 1.8.5 n900 edition
 
same problem here , start conky then i close it it left in bg....

kinggo 2010-10-30 19:37

Re: [NEW] Conky 1.8.5 n900 edition
 
Quote:

Originally Posted by afteris (Post 857640)
same problem here , start conky then i close it it left in bg....

NHF but you don't have the same problem. Your problem is that you haven't read this thread. Most likely not even the first post. :rolleyes:

afteris 2010-10-30 19:47

Re: [NEW] Conky 1.8.5 n900 edition
 
duno, examplei check pre day 6times conky all go to bg.... maybe i`m blind :) how can fix it?

kinggo 2010-10-30 20:33

Re: [NEW] Conky 1.8.5 n900 edition
 
Read the first post carefully. ;)

Mentalist Traceur 2010-10-31 15:50

Re: [NEW] Conky 1.8.5 n900 edition
 
Alright, progress - while digging around for the much more important thing (how to auto-enable conky rotation from within conky), I stumbled upon keyboard state being open/closed.

/sys/devices/platform/gpio-switch/slide/state

(In case anyone wanted to know.) So we're one step closer to fully properly rotating Conky.

I'm not ignoring the thing above about $alignr and the values being wierd - I just haven't had time to look at it at all.

kinggo 2010-10-31 20:37

Re: [NEW] Conky 1.8.5 n900 edition
 
No problem. It's just that I would like to know what I'm doing wrong. I like to learn ;) Some other time.

Mentalist Traceur 2010-10-31 23:36

Re: [NEW] Conky 1.8.5 n900 edition
 
Well, as you may have seen I posted a thread asking for help. I simply have no idea how to set the auto-rotate flag from the command line, and I have no clue what other documentation I can conceivably look through, so I should have a bit more time to experiment with the alignr and the new features of conky in general over the next few days.

mrsellout 2010-11-01 16:58

Re: [NEW] Conky 1.8.5 n900 edition
 
Quote:

Originally Posted by kinggo (Post 857612)
Values are from 255 to 478 :confused: And it looks aligned, not 100% but it doesn't differ that much as values are. On the original file, values were 525 and 490. But I split those uptime/batt and load/processes lines so I can move the graphs .
And now it does look OK but I don't know why my alignr values are all different.

I struggled to get $alignr working properly under the old conky on n900, and I think on my PC too. I ended up using $goto instead.

You've also got to look at the font you are using. Using a non-monospace font can also mess up your tables. On my desktop I ended up using my font (HandelGotDBold) everywhere else and then a monospace on for the table.

Creamy Goodness 2010-11-01 17:37

Re: [NEW] Conky 1.8.5 n900 edition
 
hey guys,
sorry, i was moving to a new house the last weekend so i didn't have time to see what's going on here.
I got enough work done to fix the problems with the .conf file installing and the auto-install for the dependencies just won't work until this is move to a repository. I thought it's not worth doing a new build because it's easy to copy the .conf file, and I assumed the dependency thing is fixable on my end, so I could do that too.
Anyways, I'm sure your ghost conky process is all from when it doesn't load the .conf correctly on your first attempt, if you didn't have a valid .conf installed it just runs invisibly I guess. So either kill it or restart to fix that. Although conky runs in a background process and is launched by a shell script, I have never seen it launch extra processes except when I break the .conf file.
Also the alignr stuff I think is simple, the # you specify is the number of pixels you want to count backwards from the right edge, so if I say something like alignr 500, it's the same as a goto 300, except the text flows the opposite direction. Only reason I used it was so I can align by the unit symbol (%,M) to the right edge of the bars, and a 2 or 3 digit number won't change that.
You can only specify one alignment type per line of text, so I write the text with one alignment, and then on the next line specify a negative vertical offset (pretty much a random number, trial and error) and write the rest of the text.
Okay, I should probably get back to work now, I can't really do anything with conky until I put my computer desk back together, and I lost some screws somewhere. Moving sucks :( I'll see what I can do about the portrait mode soon though.

Mentalist Traceur 2010-11-03 01:30

Re: [NEW] Conky 1.8.5 n900 edition
 
Well, all you really need to do is link the hildon-always-rotate flag that every app running on the N900 has somewhere, as I understand it - and tie it to a setting that can be set with a yes/no in the conf file. We have the rest already (though if you know how to make conky report whether the window is rotated in landscape or portrait - as opposed to the device's raw accelerometer-determined position), and set that as, say, $orientation variable and $if_portrait and $if_landscape variables (or $if_orientation [portrait/landscape]), that would make things more convenient and less processor intensive to the average portrait-capable configs.

But the latter isn't as necessary. No rush though. It's workable as is. :) You already contributed ridiculously by making this port.

Also, thanks for clearing up the alignr thing.

marioaguado 2010-11-09 21:13

Re: [NEW] Conky 1.8.5 n900 edition
 
Hello Do you plan to upload this in the repos to be able to install via App Manager?

Thanks

Mentalist Traceur 2010-11-10 02:15

Re: [NEW] Conky 1.8.5 n900 edition
 
I believe he will eventually.

Meanwhile, Titan just responded to my pm. He released the latest power kernel. And guess what? That one thing we were missing in kernel, top I/O per process, is supported now. Rejoice, Conky users. You can now get that much more stats from your N900s.

Creamy Goodness 2010-11-12 01:59

Re: [Updated Nov 11] Conky 1.9.0 n900 edition
 
1 Attachment(s)
whaaaaaaaaaaaaaat really?
that's awesome. there goes my night.
latest 1.9.0 build supports image variable $image now
you will have to install "libimlib2" though

i really didn't want to update the kernel, but i got it working now. that boot menu is a ***** to reconfigure!
gonna start looking at that iostats thing now.

damn, top_io just shows the difference between the io value from the update interval as it refreshes. so if you refresh it every second, it's gonna show 0 most of the time :(
the "diskio_avg_samples" config setting has no effect on this, it's just for the other (non top related) disk io stats. like the graphs for the whole device or whatever.

http://appcheck.net/storage/Screensh...112-005757.png

xiton 2010-11-12 04:27

Re: [Updated Nov 11] Conky 1.9.0 n900 edition
 
Repos please! Great app.

Creamy Goodness 2010-11-16 00:36

Re: [Updated Nov 11] Conky 1.9.0 n900 edition
 
i enabled lua and imlib2 recently, if you want to test just install those two dependencies manually. i don't think i can enable cairo, although cairo can support opengl or qt as an output device, conky is built with that stuff missing. i'd have to take the cairo source and find what we need there, do something with tolua++, and then patch conky again to use the new functions. i really don't understand anything i just said, so don't expect me to do that right now :)

Mentalist Traceur 2010-11-16 17:11

Re: [Updated Nov 15] Conky 1.9.0 n900 edition
 
Just installed the 1.9.0-1b, tried to run apt-get libimlib2 to get that dependency, it complained about other two libraries, tried to install those one by one, where-upon it complained about conky-n900 missing a dependency. Ran apt-get -f install, and after one try where it failed to fetch the stuff for whatever reason, second try with the same command worked lovely.

Old conky.conf file still works, so nothing broke. I'll get around to fiddling when I have time. (Busy phase in semester these upcoming two weeks.)

fnordianslip 2010-11-16 19:18

Re: [Updated Nov 15] Conky 1.9.0 n900 edition
 
Assuming Creamy hasn't pushed an updated conky through the autobuilder before then, I'd hope to be able to help out with any remaining packaging and extras stuff towards the end of December, as I have a bunch of time off then (hopefully).

Getting Conky into extras was last Xmas' main project for me.

Creamy Goodness 2010-12-02 09:11

Re: [Updated Nov 15] Conky 1.9.0 n900 edition
 
2 Attachment(s)
http://www.appcheck.net/storage/Scre...202-013246.png

porselinaheart 2010-12-02 09:45

Re: [Updated Dec 2] Conky 1.9.5 n900 edition
 
drool.....

Radicalz38 2010-12-02 09:52

Re: [Updated Nov 15] Conky 1.9.0 n900 edition
 
Quote:

Originally Posted by Creamy Goodness (Post 887395)

What's this? 0.o

nubsis 2010-12-02 12:48

Re: [Updated Nov 15] Conky 1.9.0 n900 edition
 
Quote:

Originally Posted by Radicalz38 (Post 887420)
What's this? 0.o

Totally bloody awesome

Creamy Goodness 2010-12-03 06:05

Re: [Updated Dec 2] Conky 1.9.5 n900 edition
 
own_window yes
own_window_class Conky
own_window_type normal
own_window_transparent no
own_window_hints undecorate fullscreen

new feature :)
i'll upload a new version later, trying to see if i can make an interface to exit from fullscreen first...

009N 2010-12-03 06:58

Re: [Updated Dec 2] Conky 1.9.5 n900 edition
 
This version is much cooler than the one in the repo. Thanks!
Just a wild thought: would it be possible to launch Conky upon startup and get it to use one complete desktop space, i.e. kinda like a widget? It would be nice if I can have my usual desktop on #1 and look up the system info on #2. :D

Creamy Goodness 2010-12-03 07:36

Re: [Updated Dec 2] Conky 1.9.5 n900 edition
 
possibly... every time i try to do something simple i find it's like 4 times harder than i thought. if you find any documentation on how to draw on those windows, let me know. chances are that the desktop panels aren't individual windows though. may be some trick to draw on them still.
i got some really bad code written that just closes conky instantly if you click in the top right area (x>750 && y <50) if in fullscreen mode only. well, it's the best simple solution i could come up with. x11 / xlib has no simple way to detect a double click of course.

matts76 2010-12-03 10:59

Re: [Updated Dec 3] Conky 1.9.5b n900 edition
 
Can i use this new version as a live desktop? I have the original conky as my number1 desktop and being able to do this with this version would be the biggest contributing factor for installing it.

Ill prob test it for myself when i've got more time next week, but would be really interested to see any screen shots if anyone else is using the new version as a live desktop.
Thanks

Matt

Creamy Goodness 2010-12-03 16:09

Re: [Updated Dec 3] Conky 1.9.5b n900 edition
 
i don't think anyone else knows how, apparently you didn't read the last two posts or you wouldn't be asking if you can still do the thing we just said we don't know how to do...

Creamy Goodness 2010-12-11 20:56

Re: [Updated Dec 3] Conky 1.9.5b n900 edition
 
matts76 finally answered my PM, the procedure is to install "Live wallpaper", go to your phone settings and click it. Now, click a desktop, choose category "unknown" and select "conky".
It works fine except it launches conky directly instead of using conky.sh, so the default config file is always loaded, even if you have a customized one in your MyDocs. I am thinking the easiest solution is just to delete the conky.conf in /etc/Conky and create a symlink to the MyDocs one. Then again, some people may prefer to have two configs - one for the desktop, and one for the windowed version.

Here's a screenshot, the default conf i provided actually works very well, only problem i see is the right aligned text is off the right edge of the screen by a pixel or two. Maybe a bug in the live wallpaper or something, should be easy to work around. The bargraph text is also shifted but its not as bad, at least is still readable.
http://www.appcheck.net/storage/Scre...211-143707.png

If you're wondering, the conky process is killed any time the desktop goes off the screen, so it's not a battery killer. Just the history graphs start over each time.

dbrodie 2010-12-12 23:03

Re: [Updated Dec 3] Conky 1.9.5b n900 edition
 
Thanks for pushing out the new version! (sorry I couldn't test it),
With all the new features, any chance of the weather plugin working?

Creamy Goodness 2010-12-12 23:39

Re: [Updated Dec 3] Conky 1.9.5b n900 edition
 
Quote:

Originally Posted by dbrodie (Post 895538)
Thanks for pushing out the new version! (sorry I couldn't test it),
With all the new features, any chance of the weather plugin working?

yeah, someone has to download ConkyForecast from here and make an optified deb first though. It's just a python script and some config files, but its required by conky weather
You could probably get it working without repackaging the deb, but it's not much work either way so I don't know which is easier :)

dbrodie 2010-12-13 10:23

Re: [Updated Dec 3] Conky 1.9.5b n900 edition
 
Heres a screenshot!
http://postimg.com/image/26000/25873.jpg

You can just use the deb's from the ppa in the N900 the way they are. :)

EDIT: Fixed

Creamy Goodness 2010-12-13 19:07

Re: [Updated Dec 3] Conky 1.9.5b n900 edition
 
cool, might work well with the live desktop method... only problem with those debs is they will take up rootfs, but yeah if its just a tiny script and you put the images elsewhere, who cares.

dbrodie 2010-12-13 19:28

Re: [Updated Dec 3] Conky 1.9.5b n900 edition
 
Well, they don't take up much, but if there is interest I wouldn't mind trying to repackage all the different conky extras from the ppa into an optified conky-extras (original name!) package.

Creamy Goodness 2010-12-20 04:39

Re: [Updated Dec 3] Conky 1.9.5b n900 edition
 
1 Attachment(s)
I updated my codebase to use the latest from the master branch, so its 1.82 now.
I fixed a few small bugs I found and spent the rest of the weekend (almost all of it) playing with lua and cairo.
It was really frustrating because I didn't know either of those languages and I had to learn them because the scripts people posted online are full of memory leaks and bugs :(
I need to go play some xbox and clear my head, but I thought I'd update you guys on the progress in case anyone else finds this "fun".
I will upload a new version to the garage page, the bugs i fixed are critical to get this lua and imlib2 stuff working the way i did.

http://www.appcheck.net/storage/Scre...219-211628.jpg
(looks cool but uses a lot more cpu! also xorg crashed twice and phone reboots when that happens... YMMV)

Also gotta attach this zip, its containing some lua scripts and font, jpg is not included as its not public domain. I run the lua scripts by placing all in a "lua" subfolder of MyDocs. The LoadAll.lua sits in mydocs, call that one from conky .conf with... well just look at the conf. I'll attach it in a minute.

Creamy Goodness 2010-12-20 05:25

Re: [Updated Dec 3] Conky 1.9.5b n900 edition
 
Quote:

Originally Posted by matts76 (Post 888244)
Can i use this new version as a live desktop? I have the original conky as my number1 desktop and being able to do this with this version would be the biggest contributing factor for installing it.

Ill prob test it for myself when i've got more time next week, but would be really interested to see any screen shots if anyone else is using the new version as a live desktop.
Thanks

Matt

oh, bad news, i just tested the live desktop and it now crashes when you switch desktops. it was unstable before, now it's useless. i suspect cairo... and really i have no clue how to fix that. one of the lua scripts had a comment from the author where he added some extra stuff to "fix a segfault when a window is dragged across conky" or something. so you get the idea. someone that actually knows how to do this stuff should fix it :)


| Prev |   1     2   3   4     5   | Next
All times are GMT. The time now is 19:08.

vBulletin® Version 3.8.8