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.