Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 10-23-2009, 06:28 AM   #1
Registered: Sep 2009
Posts: 92

Rep: Reputation: 16
Unhappy 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:
# 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

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

/home/myname/.xmobarrc: configuration file contains error!
and it will not load the xmobar. Any help would be greatly appreciated.
Old 10-24-2009, 03:13 PM   #2
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The xmobarrc looks very different from xmonad.hs .

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

Old 10-24-2009, 04:46 PM   #3
Registered: Sep 2009
Posts: 92

Original Poster
Rep: Reputation: 16
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
This was my problem. I added the lowerOnStart = True and everything is working now.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xmonad on Slackware vinegaroon Slackware 12 01-31-2010 01:48 PM
Slackware 13.0 + xmonad + programs open in huge fonts satori@sanitarium Slackware 2 09-26-2009 09:41 AM
problem with xorg and xmonad in arch linux Unregistered Linux - Desktop 1 06-03-2009 06:33 PM
Network manager applet does not start in xmonad johnnyxxxcakes Linux - Newbie 3 02-19-2009 09:09 AM
acpi nearly working IBM thinkpad R40e 2684HVG no Fn key working, throttling OK Emmanuel_uk Linux - Laptop and Netbook 2 05-31-2006 01:41 AM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration