LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   conky configuration question (https://www.linuxquestions.org/questions/linux-software-2/conky-configuration-question-841136/)

Tux Rules 10-29-2010 06:42 AM

conky configuration question
 
I have 4 NTFS partitions and I want the info regarding those partition to be displayed as a whole. I'we mounted all my NTFS in /mnt but it doesn't works to refer only to the folder where the partitions are mounted and you have to refer to them individually, so i cant display them as a whole.

Also if anybody knows if conky supports mathematical functions or if he knows a tutorial about that it would be great 'cause if so I could make it caluclate the free and used space that should be displayed regarding those NTFS partitions of mine.

fbobraga 10-29-2010 07:41 AM

this may help: http://conky.sourceforge.net/documentation.html (and try to search on google for "conky tutorial" or somethin like it - it has tons of results)

* there's a lot of topics on this subject here on linuxquestions
* the word conky is misspelled in the title of this topic (it's "cony") - please correct that

Tux Rules 10-29-2010 08:12 AM

Quote:

Originally Posted by fbobraga (Post 4143218)
this may help: http://conky.sourceforge.net/documentation.html (and try to search on google for "conky tutorial" or somethin like it - it has tons of results)

* there's a lot of topics on this subject here on linuxquestions
* the word conky is misspelled in the title of this topic (it's "cony") - please correct that

OK thx, I've already searched for that and didn't found much about my problem, 'cause the thing is it doesn't helps me much if there are tons of results googleing about it, if i can't find anything about what I actually need. Anyway thx for pointing my misspelling so I could correct that. I'll keep searching that's for sure.

Tux Rules 10-29-2010 09:00 AM

Also if anybody knows how to or knows a tutorial about how you can implement an audio spectrum analyzer so it could be displayed in conky that would be really nice.

Tux Rules 10-30-2010 09:29 AM

1 Attachment(s)
Ok I solved the problem. For those who have the same issue they can use these lines for inspiration, anyway I can help if it's needed.
Code:

${color grey}NTFS HDD ${color 115199} ${exec df -H|awk '/mnt/ {avail += $4; size += $2; used += $3} END {print int(avail*100/size)"%""                  "used"GiB"" " "of" " "size"GiB"}'}
${color}${execbar exec df -H|awk '/mnt/ {avail += $4; size += $2} END {print int(avail*100/size)}'}

Now I can see all my NTFS partitions as a whole in conky, and if there are any sugestions about that audio spectrum analyzer pls don't be shy 8-)). Using the lines I've provided assuming you keep your NTFS partitions in /mnt folder you should end up with something like this

Hangdog42 10-30-2010 09:41 AM

Quote:

Originally Posted by Tux Rules
and if there are any sugestions about that audio spectrum analyzer pls don't be shy 8-))

I haven't tried it, but there is this project

Tux Rules 10-30-2010 02:01 PM

Quote:

Originally Posted by Hangdog42 (Post 4144245)
I haven't tried it, but there is this project

Thx for that as it is a great starting point. I've found the link you have provided already but I have to make an account at Ubuntu forums to get the conky config files I need and for some reason I don't feel like doing that for the moment. Anyway I will mark your response as helpful just because you cared.


All times are GMT -5. The time now is 06:17 AM.