4

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.

math
  • 1,478
  • can you explain what you mean by "horizontal maximized"? A window is either maximized or not... – fossfreedom Dec 09 '11 at 23:28
  • 1
    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 09:26

3 Answers3

3

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 would I want to avoid it?

fossfreedom
  • 172,746
  • 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
  • These settings no longer exist, but FYI there is a perfect, fully working solution. See Hal Canary's answer (currently bottom of page) – Jonathan Hartley Sep 23 '17 at 01:30
1
dconf write \
  /org/compiz/profiles/unity/plugins/core/toggle-window-maximized-vertically-key \
  "'<Alt>F6'"
dconf write \
  /org/compiz/profiles/unity/plugins/core/toggle-window-maximized-horizontally-key \
  "'<Alt>F7'"
1

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

int_ua
  • 8,574
  • 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 09: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
  • There is a solution that also toggles. See Hal Canary's answer (currently bottom of page.) – Jonathan Hartley Sep 23 '17 at 01:31