Linux – How to change the X-Windows default border width for all window frames in Ubuntu using Gnome 2.28


Way back from Windows 3.x days to the latest 64bit Windows 7 (classic/standard theme).. there is a way to make the window edge border wider then 1 pixel… I often use 3 to 5 pixel to make it easy to grab on hi-resolutions displays and hi DPI monitors.

There doesn't seem to be an easy or obvious way to do this with the Gnome X-Windowing system?

Does any one know how?

Best Answer

For the Ambiance theme on Ubuntu 11.04, the diff below fattens up the borders.

I assume you can apply a similar diff to other themes.

--- /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml.1    2011-07-01 22:09:31.595731506 +1000
+++ /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml  2011-07-02 12:02:35.077593280 +1000
@@ -11,9 +11,9 @@

 <!-- General window layout -->
 <frame_geometry name="frame_geometry_normal" title_scale="medium" rounded_top_left="true" rounded_top_right="true"  rounded_bottom_left="false" rounded_bottom_right="false">
-   <distance name="left_width" value="1"/>
+   <distance name="left_width" value="3"/>
-   <distance name="right_width" value="1"/>
+   <distance name="right_width" value="3"/>
-   <distance name="bottom_height" value="1"/>
+   <distance name="bottom_height" value="3"/>
    <distance name="left_titlebar_edge" value="10"/>
    <distance name="right_titlebar_edge" value="10"/>
    <distance name="button_width" value="18"/>
@@ -198,16 +198,12 @@
 <!-- Window Frames -->

 <draw_ops name="draw_frame">
-    <rectangle color="shade/#3c3b37/0.7" x="0" y="0" width="width" height="height" filled="true"/>
-    <gradient type="vertical" x="0" y="0" width="width" height="60">
-        <color value="shade/#3c3b37/1.2" />
-        <color value="shade/#3c3b37/0.7" />
-    </gradient>
+    <rectangle color="#3c3b37" x="0" y="0" width="width" height="height" filled="true"/>

 <!-- bottom border -->
 <draw_ops name="bottom_edge">
-   <line color="shade/#3c3b37/0.7" x1="0" x2="width" y1="height-1" y2="height-1"/>
+    <rectangle color="#3c3b37" x="0" y="0" width="width" height="height" filled="true"/>

 <draw_ops name="border">