
That is exactly my situation; I've been using xmonad for about 4 years, but know no haskell. So early on I created my ~/.xmonad/xmonad.hs, and started cutting and pasting from online examples to change key bindings, etc. R. On Sun, 19-01-2014, at 17:15, tyler@plantarum.ca wrote:
Thanks, that's good to know.
As a newbie, it's very confusing trying to get a basic config set up. There are numerous conflicting examples online. I think I used this one, from the xmonad wiki:
http://www.haskell.org/haskellwiki/Xmonad/Config_archive/Template_xmonad.hs_...)
It includes the problematic dmenu line. If I'm meant to infer from the comments in that file that it's not suitable as a base xminad.hs, it's not clear to me. There is a line indicating 'normally you'd only override the defaults you're interested in' - which I interpreted as meaning use the file verbatim, and change only lines that you need to. Which is what I did. Perhaps the wording could be clarified?
Part of my problem is that Haskell doesn't resemble any language I'm familiar with, so for now anything more involved than changing a key binding requires cutting and pasting from online examples.
Thanks,
Tyler
Brandon Allbery
wrote: On Fri, Jan 17, 2014 at 8:17 AM, Tyler Smith
wrote: I switched from:
, ((modm, xK_p ), spawn "exe=`dmenu_path | dmenu` && eval \"exec $exe\"")
to
, ((modm, xK_p ), spawn "dmenu_run")
and dmenu is now working again.
I infer that you have one of those "build up the default from scratch" configs. We have a comment in that example config saying "don't use this as a real config", but various Linux distributions like to remove that comment and recommend its use.
If you had not used it, xmonad would probably have handled the dmenu change for you with at most an "xmonad --recompile" needed. This is *why* we disrecommend use of that config --- it hides any changes we make later to xmonad to adapt to changing external utilities, and can hide new functionality.
-- Ramon Diaz-Uriarte Department of Biochemistry, Lab B-25 Facultad de Medicina Universidad Autónoma de Madrid Arzobispo Morcillo, 4 28029 Madrid Spain Phone: +34-91-497-2412 Email: rdiaz02@gmail.com ramon.diaz@iib.uam.es http://ligarto.org/rdiaz