add tmux config

This commit is contained in:
2025-01-06 16:12:11 +07:00
parent a7e95c3ed1
commit 1da6e2625f
2 changed files with 49 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
##CPU loading
CPULOAD=$(top -bn1 | sed -n '/Cpu/p' | awk '{print $2}' | sed 's/..,//')
##RAM usege
RAMLOAD=$(free | grep Mem | awk '{print $3/$2 * 100.0}' | cut -d. -f1)
echo \
"|  $CPULOAD% |" \
" $RAMLOAD% "