You are not logged in.

#1 2009-07-28 07:06:18

yfel
Member
Registered: 2009-07-28
Posts: 9

awesome wm floating apps?

how could i find the class/instance of an application in order to specifying floating applications in awesome.
for example,i want firefox download window to float but doing so:

floatapp = {
...
["Download"] = true,
...
}

didn't work.any idea?thanks in advance

Offline

#2 2009-07-28 09:55:38

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: awesome wm floating apps?

find these lines:

    local cls = c.class
    local inst = c.instance
    if floatapps[cls] then
        awful.client.floating.set(c, floatapps[cls])                                                    
    elseif floatapps[inst] then
        awful.client.floating.set(c, floatapps[inst])
    end

and change them to:

    local cls = c.class
    local inst = c.instance
    local role = c.role
    if floatapps[cls] then
        awful.client.floating.set(c, floatapps[cls])                                                    
    elseif floatapps[inst] then
        awful.client.floating.set(c, floatapps[inst])
    elseif floatapps[role] then
        awful.client.floating.set(c, floatapps[role])
    end

Offline

#3 2009-07-28 14:33:45

evhan
Member
Registered: 2009-07-20
Posts: 6
Website

Re: awesome wm floating apps?

The xprop command will help you out here; running xprop and selecting another application window will give you all kinds of information about it. Running xprop WM_CLASS will give you the terms you can use with awesome to float that app.

Last edited by evhan (2009-07-28 14:34:16)

Offline

#4 2009-07-29 01:31:48

yfel
Member
Registered: 2009-07-28
Posts: 9

Re: awesome wm floating apps?

evhan wrote:

The xprop command will help you out here; running xprop and selecting another application window will give you all kinds of information about it. Running xprop WM_CLASS will give you the terms you can use with awesome to float that app.

:)thanks!

Offline

#5 2009-07-29 02:15:45

alterecco
Member
Registered: 2009-07-13
Posts: 152

Re: awesome wm floating apps?

If you use naughty, you can use something like this in your aweome rc.lua keybinds

-- print info on current client
key(keys.c_mod,    "i",        function ()
    local c = client.focus
    if not c then
        return
    end

    local geom = c:geometry()

    local t = ""
    if c.class then t = t .. "Class: " .. c.class .. "\n" end
    if c.instance then t = t .. "Instance: " .. c.instance .. "\n" end
    if c.role then t = t .. "Role: " .. c.role .. "\n" end
    if c.name then t = t .. "Name: " .. c.name .. "\n" end
    if c.type then t = t .. "Type: " .. c.type .. "\n" end
    if geom.width and geom.height and geom.x and geom.y then
        t = t .. "Dimensions: " .. "x:" .. geom.x .. " y:" .. geom.y .. " w:" .. geom.width .. " h:" .. geom.height
    end

    naughty.notify({
        text = t,
        timeout = 30,
    })
end),

Offline

Board footer

Powered by FluxBB