Adam, Daniel: Got it. Thanks!<br><br><div class="gmail_quote">On Thu, Feb 19, 2009 at 11:54 AM, Adam Vogt <span dir="ltr"><<a href="mailto:vogt.adam@gmail.com">vogt.adam@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
dmenu should work. Using System.Process you can get the stdout of dmenu<br>
(which will contain what the user typed in or the option they selected)<br>
when run as such:<br>
<br>
> echo "option1\noption2" | dmenu -p Input:<br>
<br>
You should also consider using XMonad.Prompt, which should allow an<br>
arbitrary string input optionally with completion. There are many uses of<br>
it under the XMonad.Prompt. namespace in xmonad contrib.<br>
<div><div></div><div class="Wj3C7c"><br>
* On Thursday, February 19 2009, lowly coder wrote:<br>
<br>
>I need to get a string from the user + do funky things with it.<br>
><br>
>This is like inverse of spawn "xmessage ... "<br>
><br>
>Dmenu does not "work" because I don't want to immediately run the program --<br>
>I need xmonad to get the string + do things with it + control how the<br>
>program is started.<br>
><br>
>How can I do this?<br>
><br>
>Thanks!<br>
<br>
</div></div><div><div></div><div class="Wj3C7c">>_______________________________________________<br>
>xmonad mailing list<br>
><a href="mailto:xmonad@haskell.org">xmonad@haskell.org</a><br>
><a href="http://www.haskell.org/mailman/listinfo/xmonad" target="_blank">http://www.haskell.org/mailman/listinfo/xmonad</a><br>
<br>
_______________________________________________<br>
xmonad mailing list<br>
<a href="mailto:xmonad@haskell.org">xmonad@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/xmonad" target="_blank">http://www.haskell.org/mailman/listinfo/xmonad</a><br>
</div></div></blockquote></div><br>