You are not logged in.

#1 2012-09-30 12:32:02

agkbill
Member
Registered: 2011-06-13
Posts: 85

Window manager i3 xmobar not working.

Hi all!

I am giving window manager i3 a try and so far I just love it!

However I would like to use xmobar, in my previous Xmonad setup xmobar worked perfect.

According to the documentation it should be no problem to use xmobar with i3.

This is my configuration files:


/home/christer/.xmonad/xmobarrc

Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*"
        , borderColor = "black"
       , border = TopB
       , bgColor = "grey40"
       , fgColor = "black"
       , position = TopW L 100 
       , lowerOnStart = True
       , commands = [ Run Weather "ESSA" ["-t","<station> <tempC>C rh <rh>%","-L","64","-H","77","--normal","green","--high","red","--lo
w","lightblue"] 36000
                    , Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
                    , Run Memory ["-t","Mem: <usedratio>%"] 10 
                    , Run Swap [] 10
                    , Run Date "%a %b %_d %l:%M" "date" 10 
                    , Run StdinReader
                    , Run CommandReader "/usr/bin/ledmon" "LED"
                    , 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 Network "ra0" ["<essid> <quality>","-L","0","-H","32","--normal","green","--high","red"] 10
                    ]
       , sepChar = "%"
       , alignSep = "}{"
       , template = "%StdinReader% | %eth0% -- %eth1% -- %ra0% }{ <fc=#ffff00>%LED%</fc> %cpu% | %memory% * %swap%    <fc=#ee9a00>%date%
</fc> | %ESSA%"
       }
/home/christer/.i3/config (The last part)

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
        status_command i3status | xmobar /home/christer/.xmonad/xmobarrc -o -t "%StdinReader%" -c "[Run StdinReader]"

        #ce 2012-09-29 hide statusbar by default
        #mode hide
        #ce 2012-09-29 Set what modifier key to show the statusbar
        #modifier $mod
        position top
} 
/home/christer/.i3status.conf

general {
        output_format = "xmobar"
        colors = true
        interval = 5
}

In i3 documentation i read:


To get xmobar to start, you might need to copy the default configuration file to ~/.xmobarrc. Also, ensure that the output_format option for i3status is set to xmobar.

Example for usage of i3status with xmobar:

i3status | xmobar -o -t "%StdinReader%" -c "[Run StdinReader]"


However there is something I missing, all I get is a black empty statusbar only showing the number of the workspace.

xprop from status-bar give:

[christer@Arch ~]$ xprop 
WM_STATE(WM_STATE):
		window state: Normal
		icon window: 0x0
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 19, 0, 0, 0, 0, 0, 0, 1920, 0, 0
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DOCK
WM_NAME(STRING) = "i3bar for output DVI-I-2"
WM_CLASS(STRING) = "i3bar", "i3bar"
[christer@Arch ~]$

If I try to start xmobar directly from a shell with the original xmobarrc nothing happens.

[christer@Arch dzen2]$ xmobar /home/christer/.xmonad/xmobarrc

Any ide or input on what I made wrong?

Thank you.

Best regards,
Christer

Last edited by agkbill (2012-09-30 15:17:45)

Offline

Board footer

Powered by FluxBB