Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

There are some superfluous padding in Awesome windows manager in case of unmaximized single window. I'm talking about window borders and other specific for certain applications stuff (for example Chromium has more compact upper panel in maximized mode).

Is it possible to make Awesome auto-maximize window when windows count equals one?

share|improve this question
up vote 2 down vote accepted

Yes it's possible. Check client signals!

The code of my main idea (maybe not perfect):

   if ( #(new_tag:clients())==1 ) then
       c.maximized_horizontal = true
       c.maximized_vertical = true

   if ( #(old_tag:clients())==1 ) then
       local myclients = old_tag:clients()
       for _,cl in ipairs(myclients) do             
          cl.maximized_horizontal = true
          cl.maximized_vertical = true
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.