Thursday, April 26, 2007

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):
            self.window.window.set_type_hint(
gtk.gdk.WINDOW_TYPE_HINT_UTILITY)

and then change it to:
            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.

No comments: