Talk:KDE and awesome
From awesome
Sure it is a solution to disable Plasma, but i would like to use plasma, esp. the panel, which can be useful when used with autohide. But i had the problem that plasma gets focus, that is very unwanted for example the rotate-clients script.
My solution was this:
in:
/usr/share/awesome/lib/awful/client.lua
the function:
--- Get visible clients from a screen.
-- @param screen The screen number, or nil for all screens.
-- @return A table with all visible clients.
function visible(screen)
local cls = capi.client.get(screen)
local vcls = {}
for k, c in pairs(cls) do
if c:isvisible() and c.class ~= "Plasma" then
table.insert(vcls, c)
end
end
return vcls
end
this is a very dirty solution. I would like to have a cleaner one. It would be cool to define it in the awful.rules.rules section of the rc.lua. Has anyone a cleaner solution?