The first CONKY TWITTER CLIENT ZOMG!

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
.

'''

import os
import string
import twitter
#set your user name and password here.
username=''
password=''

api = twitter.Api(username, password)
status = api.GetFriendsTimeline()
#how many tweets you want displayed at a time
twitterSize = 5;
i = 0
for s in status:
i = i+1
print s.user.name, "(@"+s.user.screen_name+")"
print s.text
print
if i == twitterSize:
break


Make sure that if you copy and paste it, you name it cwitter.py.

Now to make it show up in conky.

${execi 60 python ~cwitter.py | 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.

2 Responses to “The first CONKY TWITTER CLIENT ZOMG!”


  1. 1 Vedang July 4, 2009 at 3:46 pm

    awesome dude! Thanks for a superb script. It was the last bit I wanted for my conky-setup, and I think I’ve used it well. You might want to take a look: http://mytechrants.wordpress.com/2009/07/04/console-junkie-conky-makes-your-desktop-awesome/


  1. 1 Console Junkie: Conky Makes Your Desktop Awesome! « Tech Rants Trackback on July 4, 2009 at 3:25 pm

Leave a Reply




@Travist120

  • Boing. 4 hours ago
  • You're only as healthy as you feel. 1 day ago
  • Woah, that chick was totally NOT pregnant looking last week. Now she has a belly like she's been with it for 7 months! Highschool. 2 days ago
  • Still at midnight release. http://twitpic.com/oyyyb 2 days ago
  • Okay, so now I'm doing technical support for a python script that I made in a blog post… Is this how every miserable programmer started? 3 days ago