From b5bf45ed91f6caffb540d5dd7115155eb7933b0a Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Sun, 1 Jun 2025 22:02:21 +0800 Subject: [PATCH] =?UTF-8?q?feat=20tmux:=20=E8=AA=BF=E6=95=B4statusbar?= =?UTF-8?q?=E9=A1=AF=E7=A4=BA=E7=B5=84=E4=BB=B6=E5=85=A7=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot_tmux.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dot_tmux.conf b/dot_tmux.conf index edc57c1..385bc2e 100644 --- a/dot_tmux.conf +++ b/dot_tmux.conf @@ -19,9 +19,11 @@ set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'aacebedo/tmux-mode-indicator' set -g @plugin 'robhurring/tmux-uptime' set -g @plugin 'tassaron/tmux-df' -set -g @plugin 'anghootys/tmux-ip-address' +# set -g @plugin 'anghootys/tmux-ip-address' +set -g @plugin 'tmux-plugins/tmux-net-speed' # == Plugin Configure ========================================================= +set -g @net_speed_format "#[fg=green]⇣%s #[fg=yellow]⇡%s" # ---- tmux-mode-indicator ---------------------------------------------------- # prompt to display when tmux prefix key is pressed @@ -66,7 +68,7 @@ set -g status-bg default set -g status-fg white set -g status-style "bg=black,fg=white" set -g status-left "#{tmux_mode_indicator}#[fg=black,bg=pink] ↑ #{uptime} #[fg=pink,bg=yellow]#[fg=black,bg=yellow] ❐ #{session_name} #[fg=yellow,bg=default] " -set -g status-right "#[fg=gray,bg=default] #[fg=yellow,bg=default]#{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\"#{=21:pane_title}\" #[fg=white,bg=black]#[bg=white,fg=black] %H:%M:%S  " +set -g status-right "#[fg=gray,bg=default] ⇄ #{net_speed} #[bg=default,fg=cyan]#[fg=black,bg=cyan]  #{df_avail} #[bg=default,bg=cyan]#[fg=yellow,bg=default] #{?window_bigger,[#{window_offset_x}#,#{window_offset_y}] ,}\"#{=21:pane_title}\" #[fg=white,bg=black]#[bg=white,fg=black]  %H:%M:%S " # set -g status-left '#{tmux_mode_indicator}#[fg=colour240]#(whoami)' # set -g status-left '#{tmux_mode_indicator}#[fg=colour240]#[fg=colour255,bg=colour240] #(whoami) #[fg=colour240,bg=default]' # set -g status-left "#[bg=colour240]aaaaa #[fg=colour240]#[fg=colour255,bg=colour240] #(whoami) #[fg=black,bg=colour240]"