Gnu画面の状態行をtmux状態行に変換する

Gnu画面の状態行をtmux状態行に変換する

私はscreenrcに設定されている次の画面ステータス行を使用しています。

画面の状態

次の行を使用して設定します。

hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'

このテーマは私が作ったものではなく、どこで見つけたのか覚えていませんが、本当に気に入っています。

現在私の設定をに変換しているが、tmux私のtmux.conf

私が今まで持っているもの:

set -g status-bg black
set -g status-fg white
set -g status-left '#[fg=green]#H'
set-window-option -g window-status-current-attr bright
set-window-option -g window-status-current-bg red

次の行を生成します。

多重化状態]

他のホスト名は無視してください。別のサーバーにあります。

tmux最初のものと同様のステータス行を作成するには、どの設定を使用できますか?

ありがとうございます!

ベストアンサー1

強調表示されたウィンドウの周囲の赤い括弧を除いて、これは簡単に設定できる最も近い近似ですtmux 1.5

# default statusbar colors
set -g status-fg white
set -g status-bg default

# default window title colors
set-window-option -g window-status-fg white
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim

# active window title colors
set-window-option -g window-status-current-fg white
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright

# statusline
set -g status-left '#[fg=green][ #H ]['
set -g status-right '#[fg=green]][ #[fg=blue]%Y-%m-%d #[fg=white]%I:%M #[fg=green]]'

tmux ステータス行

強調表示されたウィンドウを赤で表示するには、次を使用します。

set-window-option -g window-status-current-fg red

おすすめ記事