darcs patch: Script callbacks for hooks

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

darcs patch: Script callbacks for hooks

Trevor Elliott-3
Hi Everyone,

I've added the ability to call a script with an argument to direct
execution.  For example, if you'd like to run a hook on startup that
does something like manage your dzen2 instance, all you would need to do
is make sure that:

> execScriptHook "startup"

was somewhere in your startup hook definition, and the script
~/.xmonad/hooks would be called with a single argument of "startup".

--trevor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hook-scripts.patch
Type: text/x-patch
Size: 9583 bytes
Desc: not available
Url : http://www.haskell.org/pipermail/xmonad/attachments/20080416/0c29a749/hook-scripts.bin
Reply | Threaded
Open this post in threaded view
|

darcs patch: Script callbacks for hooks

Don Stewart-2
trevor:

> Hi Everyone,
>
> I've added the ability to call a script with an argument to direct
> execution.  For example, if you'd like to run a hook on startup that
> does something like manage your dzen2 instance, all you would need to do
> is make sure that:
>
> > execScriptHook "startup"
>
> was somewhere in your startup hook definition, and the script
> ~/.xmonad/hooks would be called with a single argument of "startup".
>

Applied, thanks!

-- Don