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">&lt;<a href="mailto:vogt.adam@gmail.com">vogt.adam@gmail.com</a>&gt;</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>
&gt; echo &quot;option1\noption2&quot; | 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>
&gt;I need to get a string from the user + do funky things with it.<br>
&gt;<br>
&gt;This is like inverse of spawn &quot;xmessage ... &quot;<br>
&gt;<br>
&gt;Dmenu does not &quot;work&quot; because I don&#39;t want to immediately run the program --<br>
&gt;I need xmonad to get the string + do things with it + control how the<br>
&gt;program is started.<br>
&gt;<br>
&gt;How can I do this?<br>
&gt;<br>
&gt;Thanks!<br>
<br>
</div></div><div><div></div><div class="Wj3C7c">&gt;_______________________________________________<br>
&gt;xmonad mailing list<br>
&gt;<a href="mailto:xmonad@haskell.org">xmonad@haskell.org</a><br>
&gt;<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>