neodotfiles/user/.config/suckless/dwmblocks/scripts/cpu

3 lines
106 B
Bash
Executable file

#!/bin/bash
usage=$(top -b -n1 | grep "Cpu(s)" | awk '{print $2 + $4}')
echo -e " CPU: ${usage%.*}% "