On 11-01-27 03:11 PM, Andrei Thorp wrote:
On Sun, Jan 23, 2011 at 7:27 PM, Blacklemon67<[email protected]>  wrote:
I have just begun to use skype as my primary messaging system. However it
uses a lot of messaging windows, is there a way to condense the clients into
one big "virtual" client? So I can select which one with a keybinding or a
UI element?

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

Usually, I just set a rule to make all skype windows go to a
designated desktop for them automatically. Skype plays nice with
awesome and sets out an urgent that will highlight the tag in the tag
list. Setting this up should be clear enough from the wiki and main
rc.lua.

This is my final code to only show one skype window at a time:

function im_menu ()
    im = {}
    nums = 0
    for i, c in pairs(client.get()) do
        if awful.rules.match(c, {class = "Skype"}) then
            nums = nums+1
            im[i] = { c.name or "",
                         function()
                            skypewindow = c
                            re_skype()
                         end
                    }
        end
    end
    if nums > 0 then
        m = awful.menu({items = im})
        m:toggle({keygrabber=true})
    end
end

function re_skype()
    for i, c in pairs(client.get()) do
        if awful.rules.match(c, {class = "Skype"}) then
            c.hidden = not (c == skypewindow)
        end
    end
end

im_menu() is bound to modkey + s. It seems to work alright, but the only problem is awful.menu glitches sometimes, the mouse doesn't select items properly.

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

Reply via email to