What I did on my vacation from reality

Home About RTL8187B Laptop Cam Quotes Login

January 31, 2009

Hacking Gnome’s OSD colors under Ubuntu

7:54 pm — Main

I finally decided to hack my mail filter to display a brief summary of incoming non-spam email via OSD, but something had to be done about the vomit/birdshit color scheme that gnome-osd-server was using by default.

Since its configuration GUI, gnome-osd-properties, doesn’t have anywhere you can change the colors, I realized it was probably going to come down to tracking down where the colors are hardcoded and changing them by hand.

Thankfully, the relevant programs were written in Python, and I didn’t have to go compile anything from source — don’t get me wrong, I grew up on the command line, and at least 75% of my time is spent in xterms, but I’ve found that fighting with your package manager is, more often than not, more of a pain in the ass than it’s worth.

Anyway, enough irrelevant crap. The file you’ll want to edit is /var/lib/python-support/python2.5/gnomeosd/server.py.

29
30
bgcolor = "#ffffff"
fgcolor = "#000000"

I had originally written here that you could just kill gnome-osd-server, but that appears to respawn a new process for every OSD message afterwards. Probably not such a great idea. I suggest that, once you get a couple colors you like, you simply bounce the X server (log out, log back in).

Enjoy your new OSD color scheme under Gnome.




RSS feed | Trackback URI

3 Comments»

Zack —April 13, 2009 @ 2:01 pm

Dear God, man, thank you so much– I’ve wondered if the colours could be changed for ages now. Gnome-OSD is incredibly convenient… but really, could they have chosen a fuglier colour scheme?

 

meedlemnewS —October 14, 2009 @ 4:02 pm

спасибо за инфу!

 

Cayla —March 30, 2010 @ 2:07 am

Could you help me. In America, they want you to accomplish these great feats, to pull off these David Copperfield-type stunts. You want me to be great, but you don’t ever want me to say I’m great? Help me! Please help find sites for: Sultan fidjetun twin memory foam mattress. I found only this - novafoam memory mattress. Memory mattress, the health avoided the time, while the knights of labor dimethylcyclohexylamine made no past. She was radiated by ice route with dylan, memory mattress. With respect ;-), Cayla from Arab.

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped=""> in your comment.