[xmonad] getting a string from a user
lowly coder
lowlycoder at huoyanjinjing.com
Thu Feb 19 20:11:31 EST 2009
Adam, Daniel: Got it. Thanks!
On Thu, Feb 19, 2009 at 11:54 AM, Adam Vogt <vogt.adam at gmail.com> wrote:
> dmenu should work. Using System.Process you can get the stdout of dmenu
> (which will contain what the user typed in or the option they selected)
> when run as such:
>
> > echo "option1\noption2" | dmenu -p Input:
>
> You should also consider using XMonad.Prompt, which should allow an
> arbitrary string input optionally with completion. There are many uses of
> it under the XMonad.Prompt. namespace in xmonad contrib.
>
> * On Thursday, February 19 2009, lowly coder wrote:
>
> >I need to get a string from the user + do funky things with it.
> >
> >This is like inverse of spawn "xmessage ... "
> >
> >Dmenu does not "work" because I don't want to immediately run the program
> --
> >I need xmonad to get the string + do things with it + control how the
> >program is started.
> >
> >How can I do this?
> >
> >Thanks!
>
> >_______________________________________________
> >xmonad mailing list
> >xmonad at haskell.org
> >http://www.haskell.org/mailman/listinfo/xmonad
>
> _______________________________________________
> xmonad mailing list
> xmonad at haskell.org
> http://www.haskell.org/mailman/listinfo/xmonad
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/xmonad/attachments/20090219/0cc76947/attachment-0001.htm
More information about the xmonad
mailing list