Thursday, April 09, 2009


Well, I can't really say that it's the first conky twitter client. Any twitter client from cli should be able to work. But I can say that this is something that I am very proud of it because I MADE IT!!!

In order to get this on your sexy conky configuration, you are going to have to jump through some hoops. So bear with me.

First up is to install python-twitter.

sudo apt-get install python-twitter

Now that wasn't so bad was it?

Now we are going to have to edit your conky configuration.

put "text_buffer_size 10000" (no quotes) into your ~.conkyrc file. This allows conky to display more text than normally. Make sure that it goes before TEXT.

now download the script, or copy and paste for your enjoyment.
'''This piece o' junk hack of python and twitter was created by
Travis Moore (@travist120). Some 17 year old kid who decided that he
was severely bored one day and decided to create this instead of doing
his Essay and french homework.

'''Oh, and the licence. I have to make sure that those who copy will give back.'''

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see


for s in status:
i = i+1
print, "(@"+s.user.screen_name+")"
print s.text
import os
import string
import twitter
#set your user name and password here.

api = twitter.Api(username, password)
status = api.GetFriendsTimeline()
#how many tweets you want displayed at a time
twitterSize = 5;
i = 0 if i == twitterSize:

Make sure that if you copy and paste it, you name it

Now to make it show up in conky.

${execi 60 python | fold -w45}

stick that under your TEXT and you are done. I have set the time (60 seconds) as default because it's nice and safe on Twitter's servers. Feel free to change that.

-w45 might also need to be changed. This is the word wrap settings, so you are going to have to manually figure that one out by trial and error.

Posted via web from travist120's posterous


Download now or preview on posterous
clitwitter.doc (270 KB)

Posted via email from travist120's posterous