You are not logged in.
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
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
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
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
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