Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Oftentimes it is desirable to let two windows each consume exactly half of the screen. I want to do this with emacs and the terminal so that I can look up C documentation while coding.

How could I make my system such that when emacs is opened from terminal, then the terminal and emacs will reposition themselves appropriately to the two halves of my screen? Or is there a better solution for my intended purpose?

share|improve this question

The keyboard shortcuts ctrl-alt and numpad numbers will position windows.

ctrl-alt-4 and ctrl-alt-6 will cover the left and right half of the screen, respectively.

share|improve this answer

I don't know wether there is a keyboard shortcut for that, but as an alternative you could use a tiling window manager like awesome, wmii or the likes. However this may be overkill if you would just like to position these two windows correctly. Although if you would like to have the tiling behaviour deeply embedded into your window manager those are two choices I would go after.

share|improve this answer

To add to Adrian's keyboard shortcut answer, the mouse can also be used to achieve the same effect by dragging a window to the left or right hand edge of the screen and it will grow to use one-half of the screen.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.