Comment 2 for bug 135482

Revision history for this message
Raúl González Duque (zootropo) wrote :

There's no need to read it from the config file as the new version will get the screen dimensions thanks to gtk.

screen = gtk.gdk.display_get_default().get_default_screen()
screen_size = screen.get_monitor_geometry(0)
width = screen_size.width
height = screen_size.height

But I want to add an x_offset and y_offset option so that you can move the text around and position it wherever you want if for some reason the default one doesn't fit your needs.