i3wm indicators in powerline

101 views
Skip to first unread message

oujunhao

unread,
Mar 3, 2017, 9:17:07 PM3/3/17
to powerline
Would it be possible to have a status indicator in tmux that shows me the workspace I'm currently focused on? I'm not using i3bar to maximise screen space. I basically only use tmux(terminal) and google-chrome for everything, and i3 is lightweight but still usable. It's good for my multi-monitor setup too. I'm using https://github.com/powerline/powerline.

Thanks!

Nikolay Aleksandrovich Pavlov

unread,
Mar 4, 2017, 8:07:06 AM3/4/17
to oujunhao, powerline
Can you just try i3wm workspace segment? It does not look like
containing anything that requires specifically running in i3 bar.
> --
> You received this message because you are subscribed to the Google Groups
> "powerline" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to powerline-supp...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

oujunhao

unread,
Mar 4, 2017, 1:56:56 PM3/4/17
to powerline, aarono...@gmail.com
I got that working, thank you! Now I'm looking for a way to get the tmux status bar to replace i3bar. Would that work across all monitors?

Nikolay Aleksandrovich Pavlov

unread,
Mar 4, 2017, 11:17:15 PM3/4/17
to oujunhao, powerline
2017-03-04 21:56 GMT+03:00 oujunhao <aarono...@gmail.com>:
> I got that working, thank you! Now I'm looking for a way to get the tmux
> status bar to replace i3bar. Would that work across all monitors?

I have no idea how you could determine what monitor tmux is being
displayed in, and additionally powerline provides no built-in facility
to obtain this information in tmux bindings.

Best guess is something like

1. Make tmux set window title so that it is parsable and contains pane
identifier.
2. Create a Python function which given pane identifier (tmux bindings
receive this information) obtains information about which monitor(s)
tmux is displayed in.
3. Make a segment which does basically the same as existing i3
segments do, but gets information from function from step 2 and acts
accordingly.

Normally tmux is not supposed to care or know about the very window it
is displayed on, not to mention it is not supposed to care or know
what monitor this window is displayed on (if any at all): you may
always display one tmux pane in two X windows. Or no X windows: have
pane detached. Or pipe escape sequences through ssh.

I also actually have no idea whether existing i3 bar bindings are
going to work well with multiple monitors.
Reply all
Reply to author
Forward
0 new messages