From: David G. <dg...@co...> - 2011-10-20 21:05:50
|
On 20/10/11 20:44, David Given wrote: [...] > defwinprop { > predicate = function(w) > return w._NET_WINDOW_TYPE == "_NET_WM_WINDOW_TYPE_DOCK" > end, > > floating = true -- or something > } Turns out 'predicate' is already supported, and it's called 'match': defwinprop { match = function(properties, window, windowattrs) return windowattrs.class == "mywindowclass" end, floating = true } winprops are ordered for each {class, role, instance} tuple, but the tuples themselves are unordered. -- ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── │ │ "Under communism, man exploits man. Under capitalism, it's just the │ opposite." --- John Kenneth Galbrith |