# Resize 4 windows to occupy the screen without overlap on Ubuntu 18.04

In ubuntu 16.04, I used ctrl + alt + [1-9] (on the num-keypad) to resize a window to take either the top-left, top-right, bottom-left or bottom-right corner.

In ubuntu 18.04, in settings > devices > keyboard, I only see View split on left,right, which is good to occupy the screen with two windows. I'd like to occupy my screen with 4 windows without overlap.

How to resize 4 windows to occupy the screen without overlap on Ubuntu 18.04?

• I ended up using tmux to split my window into 4 (or more) shell terminals – m-ric Oct 9 '18 at 19:10

## 4 Answers

There is an extension named Put Windows.

Available in Ubuntu Software. All that you need to do is install and that's it. Super + Numpad will work afterwards.

You may need to tinker with the default settings, though. It was not quite the one quarter of the screen at first for me. It was either bigger or smaller.

• you might need to log out and log in for it to start working; at least, the case for me – toto_tico yesterday

I don't know how to do it via keyboard shortcut, but on the command line, wmctrl will allow you to change window attributes. I had to install it with apt install since it wasn't installed by default.

Example: after I start Firefox, I can move and resize the window using:

   wmctrl -r Firefox -e 0,0,0,1280,1024


You can do the math to position windows where you want based on your screen size. Have a look at the manual for details.

• thanks, that's helpful. Does this mean that Gnome does not support the 4-corner split capability that Unity did? – m-ric Jul 11 '18 at 13:45
• I couldn't find native support for it. Maybe there is an extension that does that? – rkeating Jul 11 '18 at 17:08

Gnome Shell indeed does not currently support quarter tiling. Currently, only vertical half tiling is possible.

For Gnome Shell, some extensions are available that implement tiling. The extension ShellTile provides quarter tiling in Gnome Shell.

With wmctrl, you could use :ACTIVE: instead of a name in order to change any window without knowing its name. As an example, using this code as a Custom Shortcut and assigning Ctrl + Alt + [3] will mimic the old behaviour quite well for bottom-right and you wouldn't have to use the terminal anymore.

wmctrl -r :ACTIVE: -e 0,640,512,640,512 (For a 1280x1024 screen)

Then, just add the others the same way.