Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread Rob
On 27 July 2010 01:35, Kris Maglione wrote: ... > Not so much. There's quite easy if you allow C99, anyway. > > typedef struct { >        char *class; >        char *regex; >        int ord; > } Prop; > > struct { >        char *Rule; >        RuleFn fn; >        RuleArg arg; > } rules[] = { >    

Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread Kris Maglione
On Tue, Jul 27, 2010 at 01:11:05AM +0100, Rob wrote: On 27 July 2010 00:53, Ethan Grammatikidis wrote: ... An idea crossed my mind, I don't know if it's worth anything. I thought of adding a pair of fields to dwm's window-matching array to match any X property set on a window. I don't know how

Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread Rob
On 27 July 2010 00:53, Ethan Grammatikidis wrote: ... > An idea crossed my mind, I don't know if it's worth anything. I thought of > adding a pair of fields to dwm's window-matching array to match any X > property set on a window. I don't know how the typing would work, perhaps it > could involve

Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread Kris Maglione
On Tue, Jul 27, 2010 at 01:02:28AM +0100, Rob wrote: On 27 July 2010 00:35, Kris Maglione wrote: On Mon, Jul 26, 2010 at 11:48:02PM +0100, Rob wrote: On 26 July 2010 22:32, David DEMELIER wrote: There is something that make me sad with dwm, there is a lack of role rules for clients. I expl

Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread Kris Maglione
On Tue, Jul 27, 2010 at 12:53:12AM +0100, Ethan Grammatikidis wrote: On 26 Jul 2010, at 11:48, Rob wrote: There is something that make me sad with dwm, there is a lack of role rules for clients. I explain : clients have instance and name using WM_CLASS, but there is also WM_WINDOW_ROLE which is

Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread Rob
On 27 July 2010 00:35, Kris Maglione wrote: > On Mon, Jul 26, 2010 at 11:48:02PM +0100, Rob wrote: >> >> On 26 July 2010 22:32, David DEMELIER wrote: >>> >>> There is something that make me sad with dwm, there is a lack of role >>> rules for clients. I explain : clients have instance and name usi

Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread Ethan Grammatikidis
On 26 Jul 2010, at 11:48, Rob wrote: On 26 July 2010 22:32, David DEMELIER wrote: Hello dear dwm users, hi There is something that make me sad with dwm, there is a lack of role rules for clients. I explain : clients have instance and name using WM_CLASS, but there is also WM_WINDOW_ROLE

Re: [dev] [wmii] Between tiling and floating

2010-07-26 Thread Kris Maglione
On Tue, Jul 27, 2010 at 01:20:59AM +0200, LuX wrote: > 2) or otherwise to make the focused column overlap the others of a > given percentage while the others columns keep the same width. You can keep the overlapping client in the floating area and use wmii-2 style detaching (replace its tags wit

Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread Kris Maglione
On Mon, Jul 26, 2010 at 11:48:02PM +0100, Rob wrote: On 26 July 2010 22:32, David DEMELIER wrote: There is something that make me sad with dwm, there is a lack of role rules for clients. I explain : clients have instance and name using WM_CLASS, but there is also WM_WINDOW_ROLE which is really

Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread Kris Maglione
On Mon, Jul 26, 2010 at 11:09:22PM +0100, Anselm R Garbe wrote: I think the right thing to do would be to extend Rule and applyrules() with support for WM_WINDOW_ROLE. However I doubt that many client make actually use of WM_WINDOW_ROLE in a consistent way, which is why I believe there is no grea

Re: [dev] [wmii] Between tiling and floating

2010-07-26 Thread LuX
Hi! On lun., juil. 26, 2010 at 11:58:26 -0700, Suraj Kurapati wrote: > On Mon, Jul 26, 2010 at 3:17 AM, LuX wrote: > > 1) to increase dynamically the width of the focused column of a given > > percentage, say; > > You can do this now by reading /event and growing/shrinking the client > in first

Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread Rob
On 26 July 2010 22:32, David DEMELIER wrote: > Hello dear dwm users, hi > There is something that make me sad with dwm, there is a lack of role > rules for clients. I explain : clients have instance and name using > WM_CLASS, but there is also WM_WINDOW_ROLE which is really important > and usefu

Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread Uriel
On Mon, Jul 26, 2010 at 11:32 PM, David DEMELIER wrote: > Hello dear dwm users, > > Of coure we could use the `title' rules but it's different on each > locale you are using so it sucks as well. Yay! One more reason why locales are totally and terminally braindead! (As if we needed any more reas

Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread Anselm R Garbe
Hi David, On 26 July 2010 22:32, David DEMELIER wrote: > There is something that make me sad with dwm, there is a lack of role > rules for clients. I explain : clients have instance and name using > WM_CLASS, but there is also WM_WINDOW_ROLE which is really important > and useful. > > Example : y

[dev] [dwm] adding WM_WINDOW_ROLE rule

2010-07-26 Thread David DEMELIER
Hello dear dwm users, There is something that make me sad with dwm, there is a lack of role rules for clients. I explain : clients have instance and name using WM_CLASS, but there is also WM_WINDOW_ROLE which is really important and useful. Example : you want your firefox window tiled but not the

Re: [dev] [wmii] Between tiling and floating

2010-07-26 Thread Suraj Kurapati
On Mon, Jul 26, 2010 at 3:17 AM, LuX wrote: > I am wondering if it would be possible: > > 1) to increase dynamically the width of the focused column of a given > percentage, say; You can do this now by reading /event and growing/shrinking the client in first column accordingly. > 2) or otherwise

Re: [dev] [wmii] Between tiling and floating

2010-07-26 Thread Thomas Dahms
Hi, On 07/26/2010 12:17 PM, LuX wrote: > Thus I am wondering if it would be possible: > > 1) to increase dynamically the width of the focused column of a given > percentage, say; > > 2) or otherwise to make the focused column overlap the others of a > given percentage while the others columns k

[dev] [wmii] Between tiling and floating

2010-07-26 Thread LuX
Hello! After using wmii on screens with three different sizes, I have realised that there is a feature that I'm missing on medium sized screens (around 17", say). Example: Very small screens require max mode anyway, and on very large screens the clients are usually large enough. But on a medium