I have recently started using xmonad. When I tried to start xmobar from xmonad like the following,
main = do
xmproc <- spawnPipe ("xmobar -x 0 "++ myXmobarrc)
xmonad $ defaults {
logHook = dynamicLogWithPP $ xmobarPP {
ppOutput = hPutStrLn xmproc
, ppTitle = xmobarColor xmobarTitleColor "" . shorten 100
, ppCurrent = xmobarColor xmobarCurrentWorkspaceColor ""
, ppSep = " "
}
-- , manageHook = manageDocks <+> myManageHook
-- , startupHook = docksStartupHook <+> setWMName "LG3D"
-- , startupHook = setWMName "LG3D"
, handleEventHook = docksEventHook
}
nothing appears in my screen. And also when I start from the commandline the error I get is the following:
xmobar: SocketError {socketErrorMessage = "Network.Socket.connect: <socket: 12>: does not exist (No such file or directory)", socketErrorFatal = True, socketErrorAddress = Just (Address "unix:path=/run/user/1000/bus")}
I have tried the solution posted here. However, nothing worked.
From this thread thread it looks like some init level issue. Could someone suggest me a direction to troubleshoot (or) fix this issue?