Super User is a question and answer site for computer enthusiasts and power users. 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 want to center my windows title like so:

Human

Instead of having them aligned to the right:

Right

Is there a setting I can change in gconf-editor or is this something controlled by each theme?

share|improve this question
    
i'm not positive but i think this is part of the (GTK, etc) theme... – quack quixote Apr 19 '10 at 2:11
    
@quack: Thats what I was thinking also, but I figured someone who makes themes might know a setting I could change in the themes gtkrc file. – Lucas McCoy Apr 19 '10 at 2:26
up vote 3 down vote accepted

This is indeed part of the theme. It is not configurable through gconf-editor. Here is an example of how to edit a theme's XML file.

Before:

<draw_ops name="title-text-focused">
   <title color="shade/#000000/0.8" x="0" y="(((height - title_height) / 2)+1)"/>
   <title color="shade/#000000/0.8" x="1" y="(((height - title_height) / 2)+1)"/>
   <title color="shade/#000000/0.8" x="2" y="(((height - title_height) / 2)+1)"/>

   <title color="#f0f0f0" x="0" y="(height - title_height) / 2"/>

</draw_ops>

<draw_ops name="title-text-unfocused">
   <title color="shade/#000000/0.8" x="0" y="(((height - title_height) / 2)+1)"/>
   <title color="shade/#000000/0.8" x="1" y="(((height - title_height) / 2)+1)"/>
   <title color="shade/#000000/0.8" x="2" y="(((height - title_height) / 2)+1)"/>

   <title color="#808080" x="0" y="(height - title_height) / 2"/>

</draw_ops>

After:

<draw_ops name="title-text-focused">
   <title color="shade/#000000/0.8" x="((3 `max` (width-title_width)) / 2)" y="(((height - title_height) / 2)+1)"/>
   <title color="shade/#000000/0.8" x="((3 `max` (width-title_width)) / 2)" y="(((height - title_height) / 2)+1)"/>
   <title color="shade/#000000/0.8" x="((3 `max` (width-title_width)) / 2)" y="(((height - title_height) / 2)+1)"/>

   <title color="#f0f0f0" x="((3 `max` (width-title_width)) / 2)" y="(height - title_height) / 2"/>

</draw_ops>

<draw_ops name="title-text-unfocused">
   <title color="shade/#000000/0.8" x="((3 `max` (width-title_width)) / 2)" y="(((height - title_height) / 2)+1)"/>
   <title color="shade/#000000/0.8" x="((3 `max` (width-title_width)) / 2)" y="(((height - title_height) / 2)+1)"/>
   <title color="shade/#000000/0.8" x="((3 `max` (width-title_width)) / 2)" y="(((height - title_height) / 2)+1)"/>

   <title color="#808080" x="((3 `max` (width-title_width)) / 2)" y="(height - title_height) / 2"/>

</draw_ops>
share|improve this answer
    
Awesome! (15..) – Lucas McCoy Apr 19 '10 at 2:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .