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!
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:
- Open up “sudo vim /usr/share/themes/Adwaita/metacity-1/metacity-theme-3.xml” as a root user
- 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.
- Add an attribute “has_title=”false” to the end of that string above
- In it’s child nodes, find find the line “<distance name=”title_vertical_pad” value=”8″ />”, change the value to 0
- Find the child node, “<border name=”title_border” left=”10″ right=”10″ top=”1″ bottom=”2″ />”, change top and bottom values to 0.
- Restart gnome with “ALT-F2” and enter “r”,then ENTER.
- 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:
- <border name=”title_border” left=”0” right=”0” top=”0” bottom=”0“/>
- <border name=”button_border” left=”0″ right=”0″ top=”0″ bottom=”0“/>
- 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.