LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to read the content of a file with conky (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-read-the-content-of-a-file-with-conky-702358/)

Adso 02-04-2009 07:25 PM

How to read the content of a file with conky
 
Hi everybody! I'am "tunning" my conky, it's really funny.
I have the idea to put a TO DO list in it.
My idea is make a list in a single file, and then, read it from conky, putting the content in the desktop. Really easy, isn't it?
The problem is that I have not idea how to do that, if it's possible...
If someone can tell me which is the text I'll thank you.
Thanks!

raj77_in 02-04-2009 08:44 PM

I think what you are looking for is the exec family of variable for conky.

Documentation available at http://conky.sourceforge.net/variables.html

Adso 02-05-2009 03:59 AM

Thanks
 
Thanks, but I could not make anything with that. I'm a newbie.
Do you know where can I find any example?
Thanks again!

merer 02-05-2009 05:46 AM

The simple way to do it would be
${exec cat <path to file>}
Then customize it to suit you.
execi lets you specify refresh interval.
You can also try playing with sort, if you like sorted todo lists.
${exec cat <path to file> | sort}

I combine the tools from http://todotxt.com/ with sorted list in conky with great success.

Adso 02-05-2009 06:23 PM

You did it!
 
Thanks, it simply works.
Thanks!

Sgt Canuck 05-17-2009 09:33 AM

Quote:

Originally Posted by merer (Post 3432907)
I combine the tools from http://todotxt.com/ with sorted list in conky with great success.

Hey, I like that todo.txt thing. Gotta check that out.


All times are GMT -5. The time now is 05:28 PM.