From 9c54afd2f35874767b4089a269b742bfdc88afd2 Mon Sep 17 00:00:00 2001 From: lucius Date: Fri, 15 Aug 2025 18:49:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E7=BD=91=E9=80=9F?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++++ tmux.conf | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d61aa0..9927f73 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,9 @@ ### 新增: 右侧监控栏内存显示 + +## V1.2.0 + +### 新增: + + 网速显示 diff --git a/tmux.conf b/tmux.conf index 8d5c22d..5e4fefe 100644 --- a/tmux.conf +++ b/tmux.conf @@ -24,11 +24,11 @@ set -g status-left "#[fg=green,bold] #S #[fg=cyan]| #[fg=yellow]#W #[fg=cyan] # 炫彩右侧系统监控(修正版 CPU 计算,内存单位改为GB,CPU频率改为GHz) set -g status-right-length 150 set -g status-right "\ +#[fg=cyan]Net: #(cat /tmp/tmux_net_speed.txt) \ #[fg=red,bold]CPU: #(top -bn1 | grep 'Cpu(s)' | awk '{print 100 - $8\"%\"}') \ #[fg=magenta] #(awk '/MHz/ {printf(\"%.2fGHz\", $4/1000); exit}' /proc/cpuinfo) \ #[fg=yellow,bold]#(free -m | awk 'NR==2 {printf \" Mem: %.1f/%.1fGB | \", $3/1024, $2/1024} NR==3 {printf \"Swap: %.1f/%.1fGB\", $3/1024, $2/1024}') \ #[fg=blue]Disk: #(df -h / | awk 'NR==2 {print $3\"/\"$2}') \ -#[fg=cyan]Net: #(vnstat --oneline b | awk -F\; '{print \"↑\"$11\" ↓\"$9}') \ #[fg=green] %Y-%m-%d #[fg=white] %H:%M" # 让状态栏颜色更醒目