Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use Ubuntu 12.04 with Unity and when I select a text (for example to copy something from browser), it has ugly orange background. I want to make it something normal like blue. I tried gnome-color-chooser but it doesn't have that option.

Do you know some way to change it? Maybe there is some gtk conf file where I can just change the color code.

share|improve this question
up vote 4 down vote accepted

You can edit


and wherever you see selected_bg_color change #f07746 (orange) to #0000ff (bright blue, or whatever color you prefer)

These are system files, so to edit them you'll need to be root like so:

 gksudo gedit /usr/share/themes/Ambiance/gtk-2.0/gtkrc /usr/share/themes/Ambiance/gtk-3.0/gtk.css /usr/share/themes/Ambiance/gtk-3.0/settings.ini
share|improve this answer
It's great that you included the orange color! I was looking for that color to set it to my windows too (Unfortunately, I am stuck with it sometimes at work) – Shahbaz Nov 19 '14 at 16:45

Just to keep this up-to-date and complete: in 13.10, gtk.css imports gtk-main.css, so you will actually need to edit:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.