LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   xmonad: xmobar not working. (https://www.linuxquestions.org/questions/linux-desktop-74/xmonad-xmobar-not-working-763938/)

Switch7 10-23-2009 06:28 AM

xmonad: xmobar not working.
 
Hi, I'm trying to get xmobar working but I'm not getting any result even after reading the manual. On the step-by-step for xmonad, under the the xmobar section, it saids to save the xmobar script to ~/.xmobarrc. I searched for this directory but it didn't exist so I made one using:
Code:

# cd /home/myname
# touch .xmobarrc

(was it alright to make this file by myself? I keep thinking it should be there when I installed xmonald, xmobar, and xmonald-contrib)

After I made this, I put the script inside .xmobarrc. I did a check using

Code:

ghci ~/.xmonad/xmonad.hs
and it said everything was fine. I loaded it up and it's not turning out the way it should. Everything except xmobar is working (I changed the default terminal to urxvt, changed the mod key to windows key, these things worked) even though I'm using the exact same thing, it saids that

Code:

/home/myname/.xmobarrc: configuration file contains error!
and it will not load the xmobar. Any help would be greatly appreciated.

knudfl 10-24-2009 03:13 PM

The xmobarrc looks very different from xmonad.hs .

Examples are available with 'Google' .. xmobarrc ..

e.g. http://www.haskell.org/haskellwiki/X...n%27s_xmobarrc

Switch7 10-24-2009 04:46 PM

Code:

Note With 0.9 < xmobar-version <= 0.9.2 , i.e. xmobar from your distro or hackage (cabal install), you will need to add a lowerOnStart line just below position:

Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
      , bgColor = "black"
      , fgColor = "grey"
      , position = TopW L 90
      , lowerOnStart = True
      ....<snip>

This was my problem. I added the lowerOnStart = True and everything is working now.


All times are GMT -5. The time now is 08:58 PM.