Screenlets, non-3D

Just a quick post about something that’s been bothering me for a while.
For anyone who uses screenlets, ever notice that if you use Beryl (at least 2.*, dunno about newer versions) and have the 3d effects plugin, the screenlets act like they’re regular 3d windows? That bothers me so much.

So I updated the screenlets code. It’s just a quick hack. Just find your installed screenlets __init__.py file (Mine was at /usr/lib/python2.4/site-packages/screenlets/__init__.py)
Find where it says the following (around line 740):

Code (python)

            self.window.window.set_type_hint(
                gtk.gdk.WINDOW_TYPE_HINT_UTILITY)

and then change it to:

Code (python)

             self.window.window.set_type_hint(
                gtk.gdk.WINDOW_TYPE_HINT_DOCK)

Then, just set all the screenlets as widgets (Right click -> window -> widget) and restart the screenlets daemon or the beryl 3d effects plugin. (Yeah that’s annoying, but it’s only got to be done once).
Simple huh? Be careful not to add any extra spacing or anything like that. Python is pretty sensitive with that.

OK, I’ll respond to comments/emails tomorrow, I promise.

This entry was posted on Thursday, April 26th, 2007 at 9:57 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “Screenlets, non-3D”

  1. Denver Gillespie Says:

    wfxi5kqov6vpol9r

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>