This is also another neat feature of i3 which is easy to implement: dialogs (which are floated) get a titlebar by default.

I usually never used titlebars, but it's true that when working with floated windows they provide a nice overlapping indicator.

I have the following in my awesomerc (from 3.4/debian sid):

-- {{{ Rules
function add_titlebar(c)
awful.titlebar.add(c, { modkey = modkey, height = awesome.font_height })
end

awful.rules.rules = {
    ...
    { rule = { ... }, callback = add_titlebar },
    ...
}
-- }}}

-- {{{ Signals
-- Signal function to execute when a new client appears.
client.add_signal("manage", function (c, startup)
    -- Add a titlebar to floating windows
if awful.client.floating.get(c) and (c.type == "normal" or c.type == "dialog") then
        add_titlebar(c)
    end
    ...

Floating windows and windows with the specified rules get a titlebar.
It would be even nicer though if floating/unfloating a window in a tile would also handle (hide/show) the titlebar properly: if I don't have an explicit rule, and I'm forcing a window to tile, then hide the titlebar. Shouldn't be too hard to implement, but I didn't have the time so far.

I'm posting this because it seems that titlebar are getting some revamping in git, so it may interest somebody.


--
To unsubscribe, send mail to [email protected].

Reply via email to