Hi,
On 25.04.2013 09:16, Daniel wrote:
[...]
I would like to avoid starting a program and then finding its window (by
pid; i.e. wmctrl can do this) and moving it in place.
[...]
In theory, a new window which appears can tell awesome on which tag it wants to
be visible. However, there is no universal way to tell programs what tag (well,
"workspace") they should request.
The other alternative is to use startup-notification to map "a new client
appeared" to the corresponding "I started some program"-event. However, in
practice (at least that is my impression), SN isn't well supported in clients
(and thus also awesome only has rudimentary support for it).
So sorry, but I can't provide any good ideas.
Uli
P.S.: You don't need wmctrl to find a window by pid:
function find_by_pid(pid)
for _, c in pairs(client.get()) do
if c.pid == pid then return c end
end
end
--
To unsubscribe, send mail to [email protected].