Comment 7 for bug 469114

Revision history for this message
Michael Rooney (mrooney) wrote : Re: Hooks on display switch (gnome wallpaper)

I like the idea of documenting and providing environment variables that a script can use, and as long as you can specify the default hooks in a file, that approach seems reasonable.

The ~/.disperCallback approach just seems like a very simple yet functional solution in that you can easily specify arbitrary code to execute including scripts, and have conditions based on the disper command.

Specifying hooks on the command line seems useful, but it seems like if a hook is common enough to want to do this a lot, maybe it should be integrated as a disper option (-w/--resize-wallpaper, -p/--move-panel for example). I imagine some core hooks would make sense as their own command line switch.