Get yourself some conkyrc files.

2011-10-05 234 words 2 mins read

If you are looking for some nice conkyrc files, then you can head over to :

Ubuntu Forums

In this thread you can see some very nice conkyrc files with screenshots. You can browse through the thread and get the one that you like. But if you are like me and would like to download all of them to see the features and commands in each of them then you would need to copy each of these files and paste them separately. But if you have to do everything manually then there’s not much of being on Linux πŸ™‚

So here’s a one liner that you can use to download the page locally into a file called test:

wget -O test

And once that is done, you can use the command as below to get only the conkyrc file code and seperate them with β€œβ€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€“β€ and few nelines.

sed -n '/<pr/,/<\/pr/ p; 1d' test |\
sed '/<pr/,/auto">/ d'|\
sed 's#</pr>#\n-----------------------------------\n\n\n#'\

Well, neat isn’t it. Not quite, why do we need 2 steps, let’s try this in one:

curl|sed -n '// d'|\
sed 's##\n-----------------------------------\n\n\n#'>conkyr

Bingo, with this you will have all the conkyrc file extracted in the file called conkyrc in the same directory seperated with few newlines and β€œβ€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€”β€“β€.

We will continue this some other time to get to a script, which can do all these for us, for now, chao…


Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it