You are not logged in.

#1 2012-07-14 01:41:44

noahc
Member
Registered: 2011-12-06
Posts: 23

[solved] xmobar issue

I am having some issues getting xmobar working, and more specifically displaying it.

Here is the output:

[noahc@pizzabox ~]$ xmobar -V
xmobar 0.15
 (C) 2007 - 2010 Andrea Rossato 
 (C) 2010 - 2011 Jose A Ortega Ruiz
 <xmobar@projects.haskell.org>
[noahc@pizzabox ~]$ xmobar .xmonad/xmobarrc &
[1] 822

Here is my xmonad.hs file

-- Imports.
import XMonad

main = do
  xmonad $ defaultConfig
    { terminal = "terminator"
    , borderWidth = 2
    }

and xmobarrc

Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
       , bgColor = "black"
       , borderColor = "black"
       , border = NoBorder
       , fgColor = "grey"
       , position = Top
       , lowerOnStart = True
       , commands = [ Run Weather "EGPF" ["-t","<station>: <tempC>C","-L","18","-H","25","--normal","green","--high","red","--low","lightblue"] 36000
                    , Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red"] 10
                    , Run Network "eth1" ["-L","0","-H","32","--normal","green","--high","red"] 10
                    , Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
                    , Run Memory ["-t","Mem: <usedratio>%"] 10
                    , Run Swap [] 10
                    , Run Com "uname" ["-s","-r"] "" 36000
                    , Run Date "%a %b %_d %Y %H:%M:%S" "date" 10
                    ]
       , sepChar = "%"
       , alignSep = "}{"
       , template = "%cpu% | %memory% * %swap% | %eth0% - %eth1% }{ <fc=#ee9a00>%date%</fc>| %EGPF% | %uname%"
       }

I can run xmobar from the command prompt and it just sits there. I can see the processs running in htop. What am doing wrong? Or what could I try?

Thanks in advance.

Last edited by noahc (2012-07-14 23:59:27)

Offline

#2 2012-07-14 02:00:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,555
Website

Re: [solved] xmobar issue

??

I'm guessing the "$"s cutting off your lines is an artifact of a cut and paste from your text editor?  Can you provide the real thing?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-07-14 02:08:57

noahc
Member
Registered: 2011-12-06
Posts: 23

Re: [solved] xmobar issue

Trilby,

I don't see the "$" cutting off my lines. Where exactly are they?

Offline

#4 2012-07-14 02:22:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,555
Website

Re: [solved] xmobar issue

In your post.  What you posted is a truncated xmobarrc.  Where's the rest?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-07-14 02:28:23

noahc
Member
Registered: 2011-12-06
Posts: 23

Re: [solved] xmobar issue

Thanks, fixed!

Offline

#6 2012-07-14 12:20:06

linux-ka
Member
From: ADL
Registered: 2010-05-07
Posts: 232

Re: [solved] xmobar issue

I don't have any issue regarding the display.

After starting from terminal I had to press mod4+ b to toggle the status bar within xmonad. The line

lowerOnStart = True

makes it necessary to toggle the bar from hidden to visible. Well, two options...toggle the bar or change the statement to False.

Offline

#7 2012-07-14 23:50:55

noahc
Member
Registered: 2011-12-06
Posts: 23

Re: [solved] xmobar issue

I changed that setting. I also tried pounding on the alt+b and no success.

Any other ideas?

Offline

#8 2012-07-14 23:59:06

noahc
Member
Registered: 2011-12-06
Posts: 23

Re: [solved] xmobar issue

I needed to change that setting, but also run it with the custom location of the config file. I thought that it was set once you run it once.

Offline

Board footer

Powered by FluxBB