how to get rid of top window borders in Ubuntu

7,893

Solution 1

There is a new package now, developed for the upcoming Unity project. It's called maximus, and it's available in the repositories by that same name.

It's very simple and works seamlessly. It just ensures that every window opens up maximized, and that every maximized window has no titlebar. Though the (un)maximize and close buttons are gone with the title bar, you can still un-maximize your windows normally using other methods. Any window you un-maximize will get it's titlebar back, and if you maximize it again the titlebar goes away again. It's also smart enough not to force pidgin's buddy list to open maximized, and the same goes for dialog boxes and stuff.

To use it:

sudo apt-get install maximus
maximus

Easy as that. Any window opened from now on will be under the effects described.

Solution 2

In Ubuntu, this is controlled by your theme. If you are running the ubuntu default, then this is metacity / Human. You can find this theme in /usr/share/themes/Human/metacity-1/.

The actual theme is defined in the metacity-theme-1.xml file.

You can copy this theme to ~/.themes/Human/metacity-1/ and edit the xml file. By editing the normal geometry heights & changing the font, you can cut a lot off, but not down to 2 pixels. Alternatively, If you don't mind changing themes, there is a metacity theme that eliminates the title bars for maximized windows.

If you care to install compiz, you can follow the instructions below to completely remove the title bar according to a rule you define (the link explains how to do it when a window is maximized).

Instructions from google's cache of this site:

You can add a rule to Com­piz to hide the title­bar on max­i­mized win­dows. Here’s how:

Open the com­piz con­fig panel (it’s called ccsm; install it if you don’t have it already (sudo apt-get install compizconfig-settings-manager). Go to “Win­dow Decorations”.

The next to last line is “Dec­o­ra­tion Win­dows”. The default is “any”, which means that any win­dow gets decoration.

We want to turn off dec­o­ra­tion for max­i­mized win­dows. So we’re going to replace any with !state=maxvert.

This removes win­dow dec­o­ra­tions for win­dows that are max­i­mized ver­ti­cally (nor­mal max­i­miza­tion is actu­ally ver­ti­cal max­i­miza­tion (“maxvert”) and hor­i­zon­tal max­i­miza­tion (“maxhorz”)).

There you have it–your max­i­mized win­dows don’t have any title­bars. If you need to do any­thing with them (min­i­mize, close, etc), you can use Alt+space and then hit the hotkey for what­ever you want: n=minimize; x=unmaximize; c=close; etc.

There is similar advice on the compiz forum.

Solution 3

You could always try Ubuntu Netbook Remix. When you maximze a window under UNR, it actually merges the title bar into the top task bar. And you can probably auto-hide the top bar.

Solution 4

You can try 'window-picker-applet' (and eventually 'maximus') to save a lot of you precious vertical screen real estate.

Honestly I did not liked it very much but if you are using a netbook with limited screen size than some thing has to be done. For example I am using an asus eee with wmii and vimperator. A very minimalistic approach but also very powerful.

Share:
7,893

Related videos on Youtube

Arthur Ulfeldt
Author by

Arthur Ulfeldt

TLDR Clojure, Docker, Linux, Security, Teaching. https://www.linkedin.com/learning/instructors/arthur-ulfeldt?u=2125562 contacting me: If you are interested in learning clojure you can call me at 1-219-CLOJURE For general Clojure chatting you can find me in IRC #clojure on freenode (thearthur) email < my first name >@< my last name >.com Interests I'm a Clojure and Linux nut with a long standing interest in virtual machines and fancy networking of all sorts. At work I write Clojure Web apps and such full time for yummly.com as well as writing "cloud" deployment systems (some would call it "devops", though I think that term is worn out by now). At home I play with Clojure, Linux, docker, Amateur Radio, and Cryptography quite a bit. I have been a functional programming enthusiast for many years and get quite a lot of personal satisfaction every time i use anything map-reduce related. I am interested in network security related projects and people that are trying to steer the world away from "the corporate castle" metaphor. If you have or are thinking about such a project I would love to hear from you. note for recruiters: I would like to politely decline any positions you might have with "devops" or "language-name engineer" in the title. PS: KE6DRD

Updated on September 17, 2022

Comments

  • Arthur Ulfeldt
    Arthur Ulfeldt over 1 year

    I'm losing a lot of precious vertical screen real estate to the fat border at the top of each window. is there anything I can do to make it go away or get it down to 2 pixels?

    • Ryan C. Thompson
      Ryan C. Thompson over 14 years
      Out of curiosity, how do you do your window management without title bars?
    • UNK
      UNK over 14 years
      Alt-Click to move, alt-RClick to resize, set a few winManagement shortcuts, and you'll never miss it.
  • Arthur Ulfeldt
    Arthur Ulfeldt over 14 years
    Wonderfull! now windows use the whole screen when maximized!
  • Arthur Ulfeldt
    Arthur Ulfeldt over 14 years
    what do they do?
  • bpa
    bpa over 14 years
    well, it's a long story. First, before you consider using wmii and or vimperator you should be comfortable with touch-typing and with the vim keybindings. They try to make browsing and managing a desktop environment completely mouseless. This means, besides many other things, that you just need a barely minimal user interface (no buttons, menus, toolbars etc.) because you will control everything with the keyboard. Eliminating UI elements will free precious screen space and by using only the keyboard you will become a more productive superuser!
  • Arthur Ulfeldt
    Arthur Ulfeldt over 14 years
    the "these instructions" link seems to be down
  • DaveParillo
    DaveParillo over 14 years
    Arthur. Retrieved from the Google cache. Added it to this answer just in case the bog entry has been deleted.