If you’re using Gnome-OSD, you probably think it’s great, but can’t stand the colours they’ve chosen as the default. You may have already found gnome-osd-properties (OSD Properties) for changing some of its settings, but were dismayed to find that changing the colours wasn’t even an option. Well, luckily it just involves editing a text config file, which you do with this command in a terminal:
sudo gedit /usr/share/python-support/gnome-osd/gnomeosd/server.py
You will see the following not too far from the top, and the values here are what you need to edit:
bgcolor = "#1B48FF"
fgcolor = "#6648FF"
gosd.BORDER_WIDTH = 1
ANIMATION = True
ANIMATION_STEPS = 10
ANIMATION_TIME = 200
bgcolor is the track name, artist name, album name, and track number, with the default being bright yellow.
fgcolor is the track time after track name, eg: (3:51), as well as the titles “Artist“, “Album“, and “Track” (the default for which is bright green).
All you need to do is open a graphics editor that can supply those colour numbers (like Gimp), or install a small app made for the task, like KColorChooser. Then just replace the default numbers with those of colours of your own choosing, and save the file upon exiting.
You might have noted you can do a couple more things, like make the border around OSD text larger (or remove it by setting it to 0), as well as have more control over the animations (in OSD Properties, you can only turn animations on and off). Any changes you make will be visible after you reboot your computer.
If your bgcolor doesn’t change to the specified colour, but stays yellow, then you’re in the same boat as I. As soon as I figure it out, I’ll post the solution here.
Did this information make your day? Did it rescue you from hours of headache? Then please consider making a donation via PayPal, to buy me a donut, beer, or some fish’n’chips for my time and effort! Many thanks!