XMonad and Xmobar monorepo for sharing code between them, build with stack
stack install (or stack --nix install if using nix)
xmonad-afreak and xmobar-afreak is then created in ~/.local/bin (local-bin-path)
(~/.local/bin needs to be in $PATH)
Copy custom buildscript for xmonad cp scripts/build ~/.xmonad/ and edit script to correct paths
if using nix, run echo 'STACK_COMMAND="stack --nix"' > ~/.xmonad/.env
Link from xmonad-afreak -> xmonad somewhere in $PATH e.g. ln -s ~/.local/bin/xmonad-afreak ~/.local/bin/xmonad
(not sure why, but --restart doesnt work properly if xmonad is not in $PATH)
Append xmonad or xmonad-afreak to .xinitrc
startx
About
XMonad and Xmobar monorepo for sharing code between them, build with stack