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

I want to toggle windows between:

horizontal maximized <-> horizontal unmaximized ALT+F7
vetical maximized <-> vertical unmaximized ALT+F6
(both) maximized <-> (both) unmaximized ALT+F5

I looked into ccsm but the maximization plugin doesn't work this way or I didn't figured it out.

Thanks for your suggestions.

share|improve this question
can you explain what you mean by "horizontal maximized"? A window is either maximized or not... – fossfreedom Dec 9 '11 at 23:28
horizontal maximizes only in x-direction, vertical only in y-direction. Where as normal maximization maximizes in both: x- and y-direction. – math Dec 10 '11 at 9:26
up vote 3 down vote accepted

enter image description here

In the General Compiz Options - Keybindings are the toggle options you require.

Note - ALT+F5, ALT+F6 & ALT+F7 are generally bound to other functions -

CTRL+F5, CTRL+F6 and CTRL+F7 are good substitutes....

Warning: What are some of the issues with ccsm and why should I not use it?

share|improve this answer
Thanks, that's what I've been looking for, except in general options :) – math Dec 10 '11 at 12:06
Unfortunately the settings for toggling Horizontal/Vertical no longer seem to exist in 14.04. At least you can still maximize in each dimension, then Unmaximize using a different shortcut. – Lambart Jun 23 '14 at 21:55

It's not toggle but you can set horizontal/vertical maximization shortcuts in the System settings -> Keyboard -> Shortcuts -> Windows

share|improve this answer
Great, at least maximizing both directions is togglable, and horizontal maximization works in one way, and you can disable it when maximize and unmaximize afterwards. A bit complicated but best what I've found so far. I searched within ccsm but with no luck. – math Dec 10 '11 at 9:31
This works in 13.10 too, but I'm still looking for a full-toggle solution without CCSM. – colan Nov 26 '13 at 21:54
I've remapped ctrl-super-up to Maximize vertically, but it's still doing a full maximize :-/ – Jean Jordaan Jul 22 '15 at 19:59
dconf write \
  /org/compiz/profiles/unity/plugins/core/toggle-window-maximized-vertically-key \
dconf write \
  /org/compiz/profiles/unity/plugins/core/toggle-window-maximized-horizontally-key \
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.