Re: Need help getting a hold of lisp
- From: Ewan Mellor <sawfish ewanmellor org uk>
- To: dataangel <k04jg02 kzoo edu>
- Cc: sawfish-list gnome org
- Subject: Re: Need help getting a hold of lisp
- Date: Tue, 8 Feb 2005 23:21:25 +0000
On Tue, Feb 08, 2005 at 04:24:34PM +0000, dataangel wrote:
> I think I'm misunderstanding how hooks are supposed to work. I want
> sawfish to detect when I open XMMS and to remove the equalizer and
> playlist from the alt+tab cycle list. But when I put the code below into
> my ~/.sawfishrc, sawfish stopped managing all windows :P Help?
>
> (add-hook 'before-add-window-hook
>
> (lambda (w descr)
>
> (if (or (string-match-re "XMMS Equalizer" (window-name w))
>
> (string-match-re "XMMS Playlist" (window-name w)))
>
> (toggle-window-cycle-skip w))))
I don't know what the problem is with the Lisp, off the top of my head, but
the solution is to use "Matched Windows" instead. Start the sawfish-ui
program, and look under the Matched Windows pane. Everything you want is
under the Add button there.
HTH,
Ewan.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]