Gnome 3 Tricks: Add a little more space to that small laptop screen


You have a 13 inch or less sized laptop screen.  You like Gnome 3, but maximized windows still* are taking up quite a bit of your top 1/3 screen space.  Sure, Every so often, you may find a Gnome extension that may help, but often that is broke on the next update.  What do you do?  As always backup the file noted in step 1 below!  I will not be responsible for any system breakage that comes to your system!

The Solution:

Thankfully, Gnome3 employs some easy to use and editable XML files for many things, including themes.  What you will want to do is edit the particular theme you are using.  In this example, we will be editing the default Adwaita theme:

  1. Open up “sudo vim /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml” as a root user
  2.  You will want to find <frame_geometry name=”max” title_scale=”medium” parent=”normal” rounded_top_left=”false” rounded_top_right=”false”>, it’s line 49 in my system.
  3. Add an attribute “has_title=”false” to the end of that string above
  4. In it’s child nodes, find find the line “<distance name=”title_vertical_pad” value=”8″ />”, change the value to 0
  5. Find the child node, “<border name=”title_border” left=”10″ right=”10″ top=”1″ bottom=”2″ />”, change top and bottom values to 0.
  6. Restart gnome with “ALT-F2” and enter “r”,then ENTER.
  7. Maximized windows should now have not title bar.

You may notice a slight white line of padding still remaining.  To further reduce this, and eliminate that line, alter the following child nodes to the above from step 1:

  1. <border name=”title_border” left=”0” right=”0” top=”0” bottom=”0“/>
  2. <border name=”button_border” left=”0″ right=”0″ top=”0″ bottom=”0“/>
  3. Restart gnome with “ALT+F2” and enter “r”, then ENTER

You are now border free while windows are maximized.  To access your “Min, Max, Close” and so on, use the hotkey “ALT+SPACE” to bring up those options.  Alternatively, you can right click the Gnome panel bar icon area for the application in the top left.



About professorkaos64

Posted on 20131103, in Tips and Tricks and tagged , , , , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s