On Sat, May 16, 2015 at 5:22 PM, Mike Burns <[email protected]> wrote:
> On 2015-05-16 16.54.18 -0400, Okan Demirmen wrote:
>> On Fri, May 15, 2015 at 3:11 AM, Mike Burns <[email protected]> 
>> wrote:
>> > cwmrc(5) autogroup takes the windowname and windowclass in the opposite
>> > order than specified in the man page. Fix the man page.
>>
>> The man page should be accurate; how are you determining that it is wrong?
>
> Perhaps I am misunderstanding the output from xprop(1). I see:
>
>     $ xprop | grep CLASS
>     WM_CLASS(STRING) = "xterm", "UXTerm"
>
> I added the following to my cwmrc(5):
>
>     autogroup 4 xterm,UXTerm
>     autogroup 5 UXTerm,xterm
>
> I then opened a new uxterm, and when I grouponly4 I see nothing, but on
> a grouponly5 I see the new uxterm.
>
> Is that what the man page is describing?

Ah, I suspect if you looked at the errors, it would show a syntax
error with the above. Like the example in the man page, use:

autogroup 4 "xterm,UXTerm"

and see if that works.

Thanks.

>> Take the example from cwmrc(5) and try it:
>>
>>      # Autogroup definitions
>>      autogroup 3 "aterm,XTerm"
>>      autogroup 3 "xterm,XTerm"
>>
>> The current logic comes from the fact that xprop(1) displays name then
>> class. That said, I do want to reverse the logic in cwm(1) along with
>> other config format changes, so I prefer to do that all at once.
>>
>> Please let me know how/why you've come to the below conclusion.
>>
>> Thanks.
>>
>> > Index: app/cwm/cwmrc.5
>> > ===================================================================
>> > RCS file: /cvs/xenocara/app/cwm/cwmrc.5,v
>> > retrieving revision 1.59
>> > diff -u -p -r1.59 cwmrc.5
>> > --- app/cwm/cwmrc.5     25 Aug 2014 12:49:19 -0000      1.59
>> > +++ app/cwm/cwmrc.5     15 May 2015 07:08:45 -0000
>> > @@ -40,7 +40,7 @@ The following options are accepted:
>> >  .Pp
>> >  .Bl -tag -width Ds -compact
>> >  .It Ic autogroup Ar group windowclass
>> > -.It Ic autogroup Ar group windowname,windowclass
>> > +.It Ic autogroup Ar group windowclass,windowname
>> >  Automatically add new windows to
>> >  .Ar group
>> >  if their class property matches
>> >
>

Reply via email to