Get yourself some conkyrc files.

Table of contents for conkyrc

  1. Get yourself some conkyrc files.
  2. Script to get yourself some conkyrc files
  3. Cont: Get yourself some more conkyrc files.

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 http://ubuntuforums.org/showthread.php?t=281865 -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#'\
 >conkyrc

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

curl http://ubuntuforums.org/showthread.php?t=281865|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…

About Amit Agarwal

1 Trackback on “Get yourself some conkyrc files.”