Re: Problem with OccupyAll

Aaron Sloman <[email protected]>
Newsgroups gmane.comp.window-managers.ctwm
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.