🖋Fix Skype under Awesome WM

By default, Skype behaves strangely under awesome wm. For example, view profile window is so small that even name isn’t displayed.

Skype profile window is scrambled to 5px height

Yes, that’s Skype profile in the middle.

After investigation with xprop, the reason is pretty clear.

WM_NORMAL_HINTS(WM_SIZE_HINTS):
        user specified size: 300 by 10
        program specified size: 300 by 10
        program specified minimum size: 300 by 573
        program specified maximum size: 300 by 10
        window gravity: NorthWest

The window’s maximum size is smaller than minimum one. That’s why it’s impossible to resize Skype profile window.

Another problem is that Skype chat window’s minimal size is big enough to go beyond the boundaries of my second screen when two or more windows are open.

Fix

Both problems are fixed at once with adding the proper rule to your rc.lua:

awful.rules.rules = {
    -- All clients will match this rule.
    { rule = { },
      properties = { border_width = beautiful.border_width,
                     border_color = beautiful.border_normal,
                     focus = awful.client.focus.filter,
                     keys = clientkeys,
                     buttons = clientbuttons } },
    { rule = { class = "Skype" }, -- This one!!!
      properties = { size_hints_honor = false } },
}

size_hints_honor = false specifies that awesome should ignore program-specified minimum and maximum window sizes. After that, Skype works just great.