[xmonad] Patch to add configurable working directory

Oliver Dunkl odunkl at gmx.net
Wed Oct 15 14:55:42 UTC 2014


For using xmonad for developing I have add some improvements to the
function `getXMonadDir'. With that patch you can select the
working-directory from where xmonad reads its configuration file
(xmonad.hs). 

It reads the environment variable XMONAD_WORKING_DIR_NAME and if it
is set the working-directory ist set to this directory name. If it
is not set it works as before that means the working directory is
$HOME/.xmonad. 

An example of using the environment variable:
$ export XMONAD_WORKING_DIR_NAME=xmonad-test && xmonad
means that xmonad try to start xmonad with the configuration file
in the directory $HOME/.xmonad-test ->
$HOME/.xmonad-test/xmonad.hs is the configuration file.

In my case I start Xephyr with
$ Xephyr :1

and after that I start xmonad with a different working directory
$ DISPLAY=:1 && export XMONAD_WORKING_DIR_NAME=xmonad-test && xmonad

br
\= odi

-- 
Oliver Dunkl
WEB: http://github.com/odi
IM:  odi at jabber.ccc.de
IRC: odi(irc.freenode.net)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: working-dir.dpatch
Type: test/x-patch
Size: 8743 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20141015/560ddc45/attachment.bin>


More information about the xmonad mailing list