Gnome: Remove the titlebar when the window is maximized

Edit of GNOME 3's Adwaita Metacity theme to remove the titlebar when the window is maximized.

Source: https://gist.github.com/ajashton/1258443

sudo gedit /usr/share/themes/Adwaita-X-dark/metacity-1/metacity-theme-3.xml

and edit the file manually according this patch:

diff --git a/metacity-1/metacity-theme-3.xml b/metacity-1/metacity-theme-3.xml
index 0e285a9..52d8c54 100644
--- a/metacity-1/metacity-theme-3.xml
+++ b/metacity-1/metacity-theme-3.xml
@@ -46,17 +46,14 @@
<distance name="right_titlebar_edge" value="1"/>
</frame_geometry>
-<frame_geometry name="max" title_scale="medium" parent="normal" 
rounded_top_left="false" rounded_top_right="false">
+<frame_geometry name="max" has_title="false" parent="normal" 
rounded_top_left="false" rounded_top_right="false">
<distance name="left_width" value="0" />
<distance name="right_width" value="0" />
<distance name="left_titlebar_edge" value="0"/>
<distance name="right_titlebar_edge" value="0"/>
- <distance name="title_vertical_pad" value="8"/>
- <border name="title_border" left="10" right="10" top="1" bottom="2"/>
- <border name="button_border" left="0" right="0" top="0" bottom="2"/>
+ <distance name="title_vertical_pad" value="0"/>
+ <border name="title_border" left="0" right="0" top="0" bottom="0"/>
+ <border name="button_border" left="0" right="0" top="0" bottom="0"/>
<distance name="bottom_height" value="0" />
</frame_geometry> 
 
For other theme, just add has_title="false" and set all values to "0" for example left="0"



Comments

Popular posts from this blog

Tips Jika Mobil Anda Habis Bensin LOL!

Setting open office u label tom & jerry