You are not logged in.

#1 2012-03-15 10:02:56

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

i3 and xmobar

Hi there,

since I really don't get Haskell, I want to migrate from xmonad to i3, which is way more straight forward to me.

My first step was to combine i3 and xmobar. But here I stuck. The i3 doc says :

You typically want to see the same workspace bar on every workspace on a specific screen. Also, you don’t want 
to place the workspace bar somewhere in your layout by hand. This is where dock mode comes in: When a program 
sets the appropriate hint (_NET_WM_WINDOW_TYPE_DOCK), it will be managed in dock mode by i3. That means it 
will be placed at the bottom of the screen (while other edges of the screen are possible in the NetWM standard, this 
is not yet implemented in i3), it will not overlap any other window and it will be on every workspace for the specific 
screen it was placed on initially.

xprop gives the following information, when clicking on xmobar:

_NET_WM_PID(CARDINAL) = 864
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_DOCK
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 17, 0, 0, 0, 0, 0, 0, 1679, 0, 0
WM_NAME(STRING) = "xmobar"
WM_CLASS(STRING) = "xmobar"

Well, xmobar seems to give the necessary hint to be managed in dock mode. but I wonder why xmobar overlays everything. It is not really set into dock mode, when using it as discriped by man i3status

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

I also cannot run it manually without i3status in order to have it manged in dock mode.

I really do not want to miss xmobar. Is there a way to deal with this issue ?

I am glad for every advise :-)

Thanks,

L-K

Last edited by linux-ka (2012-03-15 10:04:15)

Offline

#2 2012-03-19 11:27:34

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

Re: i3 and xmobar

ok, obviously there is nobody using xmobar within i3....fine

Offline

#3 2012-03-19 11:48:59

stealthy
Member
Registered: 2011-05-02
Posts: 67

Re: i3 and xmobar

I was looking for a "status" bar for i3 about a week ago, I tried dzen2(did not align correctly) and xmobar(could not even get it to show up).

I eventually tried conky, which worked perfectly as a status bar.


clipodder-git A small simple cron-friendly podcast downloader, with support for arbitrary user defined media types (pdf, html, etc...)

Offline

#4 2012-03-19 12:30:28

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

Re: i3 and xmobar

ok,

but I really do not like conky. I often had trouble regarding stability and downward compatibility (@rc). Maybe this changed, but I simply love xmobar.

Just for curiosity, can you tell how to include conky flawless...I don't trust this manual of i3status, since xmobar doesn't work properly.

Offline

#5 2012-03-19 12:49:52

stealthy
Member
Registered: 2011-05-02
Posts: 67

Re: i3 and xmobar

You want my configs?

~/.i3/config (relevant part)

bar {
	output conky
	
        status_command i3status | conky
	 
}

/etc/conky/conky.conf

background no
use_xft yes
xftfont Terminus:size=9
update_interval 1
total_run_times 0
own_window yes
own_window_type dock
own_window_transparent no
double_buffer yes
border_inner_margin 0
border_outer_margin 0
use_spacer left
if_up_strictness address

TEXT
#5fd7ff
IP address: ${color lightblue} ${addr tap0} ${color grey} | ${color white} \
Datetime: ${color lightblue} ${tztime} ${color grey} | \
${color white}Free memory: ${color lightblue} ${memfree}\
${alignr} ${execpi 60 weather -i REPLACEME --headers="Sky conditions" -q} \
${execpi 100 weather -i REPLACEME -q | head -n 1 } \

clipodder-git A small simple cron-friendly podcast downloader, with support for arbitrary user defined media types (pdf, html, etc...)

Offline

#6 2012-03-19 15:14:58

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

Re: i3 and xmobar

looks like easy going....is conky in dock mode ? xmonad is said to be in dock mode, but it is not managed like that. It just overlays windows and terminals.

Offline

#7 2012-04-02 12:54:08

stealthy
Member
Registered: 2011-05-02
Posts: 67

Re: i3 and xmobar

I'm unsure if it is in "dock" mode, but it does stay as a status bar at the top of the screen.


clipodder-git A small simple cron-friendly podcast downloader, with support for arbitrary user defined media types (pdf, html, etc...)

Offline

#8 2012-04-03 06:16:35

stealthy
Member
Registered: 2011-05-02
Posts: 67

Re: i3 and xmobar

I'm an idiot, says right there "own_window_type dock". So it is running as a dock.


clipodder-git A small simple cron-friendly podcast downloader, with support for arbitrary user defined media types (pdf, html, etc...)

Offline

#9 2012-04-03 10:36:46

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

Re: i3 and xmobar

So,...but why does it overlay windows (terminals, etc) ?

Offline

#10 2012-04-03 13:10:15

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 371

Re: i3 and xmobar

You can use in 'cli-mode'.

background no
out_to_console yes
out_to_x no
update_interval 5.0
update_interval_on_battery 10.0
total_run_times 0
use_spacer none

You can create some rather nice bars using conky.  Mine shows:

volume (if non-mute) | mail (if unread) |  Wifi (if connected) |Battery and status | Clock

See also the i3 thread.  It contains some posts on various bar setups.

Last edited by Pank (2012-04-03 13:10:40)


Arch x64 on Thinkpad X200s/W530

Offline

#11 2012-04-03 15:14:48

stealthy
Member
Registered: 2011-05-02
Posts: 67

Re: i3 and xmobar

linux-ka wrote:

So,...but why does it overlay windows (terminals, etc) ?

Mine does not "overlay" any windows, tinker around with it.


clipodder-git A small simple cron-friendly podcast downloader, with support for arbitrary user defined media types (pdf, html, etc...)

Offline

Board footer

Powered by FluxBB