LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 02-04-2009, 07:25 PM   #1
Adso
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Rep: Reputation: 0
Exclamation 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!
 
Old 02-04-2009, 08:44 PM   #2
raj77_in
LQ Newbie
 
Registered: Oct 2008
Posts: 26

Rep: Reputation: 15
I think what you are looking for is the exec family of variable for conky.

Documentation available at http://conky.sourceforge.net/variables.html
 
Old 02-05-2009, 03:59 AM   #3
Adso
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Exclamation 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!
 
Old 02-05-2009, 05:46 AM   #4
merer
LQ Newbie
 
Registered: Jul 2007
Location: Vilnius,Lithuania
Distribution: Slackware 12.2
Posts: 20

Rep: Reputation: 1
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.
 
Old 02-05-2009, 06:23 PM   #5
Adso
LQ Newbie
 
Registered: Jan 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Exclamation You did it!

Thanks, it simply works.
Thanks!
 
Old 05-17-2009, 09:33 AM   #6
Sgt Canuck
LQ Newbie
 
Registered: Mar 2009
Location: Argentina
Distribution: Xubuntu 8.10, Dreamlinux 3.5 and Debian Lenny
Posts: 26

Rep: Reputation: 15
Quote:
Originally Posted by merer View Post
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.
 
  


Reply

Tags
conky, do, file, list, read


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
who has this file: ~/.conky/.conkyweatherrc ? frenchn00b Linux - General 1 10-21-2008 12:20 PM
Teach me about conky and linux resource management... How do I read load? CPU avg? Mysticle31 Linux - Software 1 12-15-2007 06:18 PM
How to read content environment file? ArthurHuang Programming 8 06-22-2006 09:28 PM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM
C++ file I/O, read content as int value Artanicus Programming 7 12-18-2005 01:31 PM


All times are GMT -5. The time now is 07:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration