
I put the UI configuration in ShowTextConfig and left the text and the timeout outside. This is because I expect the user to change often the timeout and always the text. But probably the timeout could be put in ShowTextConfig. On 12/26/2012 12:00 PM, xmonad-request@haskell.org wrote:
On Tue, Dec 25, 2012 at 3:51 PM, Mario Pastorelli
wrote: I wrote a patch for xmonad-contrib 0.10.1 to include an action to show some text in the centre of the screen. The patch is based on XMonad.Layout.ShowWName (thank you again Brandon Allbery) but it is an action and not a layout modifier. In this way it could be used to show some text when a key is pressed, for example. It includes an event handler to destroy the window after the timeout. Hi Mario,
I applied your patch. I also changed the type of handleTimerEvent to get the example code to typecheck: probably it will also work if the first mempty I added were a `return (All False)'.
Maybe it's useful to put more (all?) arguments of flashText into the ShowTextConfig?
-- Adam