Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

In awesome, what key binding can you use to maximise a window (in floating mode, of course) so that it maximise in just the horizontal or just the vertical direction?

I know that mod4 + m will maximise it fully in both directions so I kind of assume it will be possible to do a mapping to just one direction.

share|improve this question
up vote 10 down vote accepted

By default there is no such key binding. But you can create one. Use this snippet (or better add the key binding to your existing configuration) for your rc.lua file:

clientkeys = awful.util.table.join(
  awful.key({ modkey }, "F7",
    function(c) c.maximized_horizontal = not c.maximized_horizontal end),
  awful.key({ modkey }, "F8",
    function(c) c.maximized_vertical   = not c.maximized_vertical end),

It assigns horizontal and vertical maximization to mod-F7 and mod-F8, respectively.

share|improve this answer
Super. It all worked but I had to remove the comma at the end of the last but one line. – Sardathrion Jul 31 '12 at 7:41

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.