新增:网速显示

This commit is contained in:
2025-08-15 18:49:06 +08:00
parent 8da9c53864
commit 9c54afd2f3
2 changed files with 7 additions and 1 deletions

View File

@ -7,3 +7,9 @@
### 新增:
右侧监控栏内存显示
## V1.2.0
### 新增:
网速显示

View File

@ -24,11 +24,11 @@ set -g status-left "#[fg=green,bold] #S #[fg=cyan]| #[fg=yellow]#W #[fg=cyan]
# 炫彩右侧系统监控(修正版 CPU 计算内存单位改为GBCPU频率改为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"
# 让状态栏颜色更醒目