New module for xmonad-contrib: SpawnNamedPipe

Hello Xmonad devs, Attached is a simple module that allows you to spawn a pipe and store it in the xmonad state as a String, Handle pair so that it can be accessed from a different hook from where the pipe was initially created. The initial motivation for this was I wanted to be able to spawn dzen from inside the startupHook and write to the pipe from inside the logHook. I didn't like being forced to start the dzen pipe up in a global namespace so that I could access it from the logHook. This example is detailed in the Haddocks but there are many other use cases. Cheers, Chris Wills

Thanks for the patch! Looks pretty good to me, so if there continue to be no complaints about this patch for another day or two, I'll push it. ~d On 2014-02-02 16:42, Christian Wills wrote:
Hello Xmonad devs,
Attached is a simple module that allows you to spawn a pipe and store it in the xmonad state as a String, Handle pair so that it can be accessed from a different hook from where the pipe was initially created.
The initial motivation for this was I wanted to be able to spawn dzen from inside the startupHook and write to the pipe from inside the logHook. I didn't like being forced to start the dzen pipe up in a global namespace so that I could access it from the logHook. This example is detailed in the Haddocks but there are many other use cases.
Cheers,
Chris Wills
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

This 3-patches bundle was just applied to http://code.haskell.org/XMonadContrib: 20140202143415 cwills.dev@gmail.com * Added SpawnNamedPipe 20140202211000 cwills.dev@gmail.com * document and cleanup SpawnNamedPipe 20140202213613 cwills.dev@gmail.com * SpawnNamedPipe hlint cleanup -- This message was brought to you by DarcsWatch http://darcswatch.nomeata.de/repo_http:__code.haskell.org_XMonadContrib.html...
participants (3)
-
Christian Wills
-
Daniel Wagner
-
darcswatch@nomeata.de