Skip to content

March Madness on your Conky

March Madness is here and and what better way to keep track of the action than with a scoreboard tracker at the bottom of your screen. Check out the image below:

This is accomplished by combining a python script with the conky variable scroll. The python script will get the data, parse it and put it into a acceptable format for conky to handle the display. I’ve talked about conky earlier and using displaying the last instant message.

Copy the following code and save it as

import urllib
# Open html page
fweb = urllib.urlopen("")

# Manipulate str for unneccessary chars
raw=raw.replace('%20',' ');

# Open data storage
f=open('bottom.dat', 'w')
f=open('bottom.dat', 'r')

# Parse each line, get game, create str, append str
for line in f:
    if line.find('_left')>1:
        score= score + gamestr + '  |  '

print score

My conky script is as follows. Save this

#avoid flicker
double_buffer yes

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent no
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager, above

draw_borders no
border_margin 0

draw_shades no

gap_x 0
gap_y 0
alignment bottom_middle

update_interval 1

default_color  8f8f8f
#default_shade_color 000000
own_window_colour 262626

text_buffer_size 1400

use_xft yes
xftfont bauhaus:pixelsize=10

#to prevent window from moving
use_spacer none
minimum_size 1400

${color e0e0e0} ${scroll 2847 ${execpi 60 python ~/scripts/}}

Remember to edit your .conkyrc to run the right path to You may need to edit certain parameters for your screen resolution but this should give you a good start. Any questions, post a comment.
Pro Tip:To run multiple conky screens:”conky -c .conkyrc2″

Posted in Code, Conky, Linux, Ubuntu. Tagged with , , , .

3 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Mike said

    You’re code is unreadable at best. But you’re a wizard at python + conky.

  2. Colin said

    It’s actually pretty well documented. You cannot expect there to be a comment for every line explaining the syntax (or explaining the syntax at all, really).

  3. doodah said

    #behaviour … ?

    British now?

You must be logged in to post a comment.