On Fri, 14 Apr 2017, Rhialto wrote:

Try adding ^ and/or $ into the regex,

I did not think of that. So I now have

 OccupyAll
 {
   "WorkSpaceManager"

    ......

   "xdaliclock"

    ......

   "^panel$"

    ......

 }

And now the pdf file with name of the form ...panel...pdf no longer
displays in every desktop.

Despite the clue in the C code, I had not realised that the items in ctwm
lists were treated as regular expressions to be matched. That certainly
adds to the power of ctwm.

Perhaps the man file could have an addition something like

    The strings in lists like OccupyAll are treated as regular
    expressions, so to make a window with name 'clock' go in
    every workspace, but not windows named 'Myclock' 'Myclocks'
    'clocked' etc., then use the specification

        "^clock$"

    in the OccupyAll list.

Thanks.

Aaron

Reply via email to