add tmux config
This commit is contained in:
Executable
+11
@@ -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% "
|
||||
Reference in New Issue
Block a user