Am Mittwoch, den 14.10.2009, 13:13 -0500 schrieb Jeremy Hankins: > Christopher Roy Bratusek <zanghar freenet de> writes: > > Am Mittwoch, den 14.10.2009, 19:35 +0200 schrieb Christopher Roy > > Bratusek: > >> Am Mittwoch, den 14.10.2009, 19:33 +0200 schrieb Christopher Roy > >> Bratusek: > > >> > One more thingy: > >> > > >> > ;; Helper for Screenlets > >> > ( define ( add-screenlets-matcher win pos ) > >> > ( add-window-matcher 'WM_NAME win > >> > `( position . ,pos ) > >> > '( fixed-position . t ) > >> > '( cycle-skip . t ) > >> > '( depth . -2 ) > >> > '( never-maximize . t ) > >> > '( never-iconify . t ) > >> > '( no-group . t ) ) ) > >> > ( make-window-sticky ( get-window-by-name-re win ) t ) > >> > ( make-window-sticky/viewport ( get-window-by-name-re win ) t ) ) > >> > > >> > ( add-screenlets-matcher "VolumeControlScreenlet.py" 'north-east ) > >> > > >> > just gives me "invalid arguement" > > Is it that there's no window matching "VolumeControlScreenlet.py" at the > time that add-screenlets-matcher is run? Try: > > ( define ( add-screenlets-matcher win pos ) > ( add-window-matcher 'WM_NAME win > `( position . ,pos ) > '( fixed-position . t ) > '( cycle-skip . t ) > '( depth . -2 ) > '( never-maximize . t ) > '( never-iconify . t ) > '( no-group . t ) ) ) > (let ((w (get-window-by-name-re win))) > (when w > (make-window-sticky w t) > (make-window-sticky/viewport w t))) > > If that eliminates the error that's probably what's going on. > > >> ahh, you may wonder why not sticky/sticky-viewport .t: that doesn't > >> work when the screenlets are created together with sawfish (sawfishrc > >> starts them), I first want to try above, then match-window-profile, > >> when using gnome-session and autostart entries for the screenlets, > >> one of that must work > > Why not? Would it work to start the screenlets from > after-initialization-hook? > > > Temporarily I'm using the built-in screenlets function to make the > > windows sticky, but that should work without it too (I guess gDesklets > > also are effected, and those don't have a function like that) > > > > Chris > > > Neither nor is working, but I guess I've found the problem: screenlets have a is_sticky value in their .ini file ... I guess setting it to false (or having it unset) overrides sawfishs setting... Chris
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil