Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 2 down vote accepted

Yes it's possible. Check client signals!

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

client.connect_signal("tagged",function(c,new_tag)
   if ( #(new_tag:clients())==1 ) then
       c.maximized_horizontal = true
       c.maximized_vertical = true
   end
end)

client.connect_signal("untagged",function(c,old_tag)
   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
       end
   end
end)
share|improve this answer
add comment

Your Answer

 
discard

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.