Re: Correct format for two-windows window-matcher



Hi.

On Sun, 11 Oct 2009 11:30:53 +0200, Christopher Roy Bratusek wrote:
> I tried that:
> 
> ( add-window-matcher 'WM_NAME "FolderViewScreenlet.py"
>                      'WM_NAME "VolumeControlScreenlet.py"
>        '( sticky . t )
>         [...]
>        '( never-iconify . t ) )
> 
> I wonder if this is correct, I guess not (getting a `bad closure' on the
> FolderViewScreenlet),
> 
> So, what is the correct syntax for this?

Pretty simple:
( add-window-matcher 'WM_NAME "FolderViewScreenlet.py"
       '( sticky . t ) ;; ...
       )
( add-window-matcher 'WM_NAME "VolumeControlScreenlet.py"
       '( sticky . t ) ; ...
       )

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 )

Teika (Teika kazura)



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