Am Dienstag, den 13.10.2009, 08:01 -0500 schrieb Jeremy Hankins:
> 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))))
>
Well I've figured out a better thing for my purpose:
( define ( add-screenlets-matcher wm-name pos)
( add-window-matcher 'WM_NAME wm-name
'( position . pos )
'( fixed-position . t )
'( sticky . t )
'( sticky-viewport . t )
'( cycle-skip . t )
'( depth . -2 )
'( never-maximize . t )
'( never-iconify . t ) ) )
except that I'm not sure how to pass pos, as neither
( add-screenlets-matcher "FolderViewScreenlet.py" "south-west" )
or
( add-screenlets-matcher "FolderViewScreenlet.py" 'south-west )
work ... In December, while my holidays, I'll spend some more time on
RTFM, but for now any help is appreciated :)
Chris
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil