From: David G. <dg...@co...> - 2011-10-20 22:52:09
|
On 20/10/11 22:31, Arnout Engelen wrote: [...] > To read client window properties from lua, use ioncore.x_get_window_property > (http://notion.sourceforge.net/notionconf/node7.html#fn:ioncore.x_get_window_property) > and check out the atom-related functions. Documentation! Thanks very much for the link --- I'd totally failed to find that before. > To get your desired behavior of having all windows float by default, I'm not > sure I know of an elegant way to do that right now. Indeed having all matching > winprops 'stack' their options seems like a neat idea, but it might have quite > a bit of impace - we should carefully consider it. In fact, I've just changed ioncore_winprop.lua to support this. It now matches against all the defwinprop statements, in order, and accumulates settings from each one. I have this: defwinprop { float = true } defwinprop { class = "Google-chrome", float = false } ...and it actually *works* --- windows all float by default, except Chrome, which gets tiled. Of course, the stock Notion only has two defwinprop statements by default, neither of which are active on my system, so it's hardly a good test. But the patch is enclosed... -- ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── │ │ "Under communism, man exploits man. Under capitalism, it's just the │ opposite." --- John Kenneth Galbrith |