Re: Correct format for two-windows window-matcher



Teika Kazura <teika lavabit com> writes:

> Or, you can use regex to combine them.
> I couldn't figure out how to specify both name and class.
>
> ;; This doesn't work:
> (add-window-matcher 'WM_NAME "FolderViewScreenlet.py"
> 		    '( WM_CLASS . "someclass")
> 		    '( sticky . t )

The only way I know to set both is to set the match-window-profile
variable directly.  I have this in my .sawfishrc before any calls to
add-window-matcher:

(setq match-window-profile
      '((((WM_CLASS . "^XTerm/xterm$")
          (WM_NAME . "^shell$"))
         (maximized . vertical)
         (frame-type . normal))
        (((WM_CLASS . "^Gajim.py/gajim.py$")
          (WM_NAME . "^Gajim$"))
         (iconified . t)
         (position . center))))

-- 
Jeremy Hankins <nowan nowan org>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]