nixos/home/common/optional/desktop/status-bar/sb-cpu-pct.sh

2 lines
76 B
Bash
Raw Normal View History

2024-06-13 23:33:14 +01:00
echo $(top -bn 1 |grep "Cpu(s)" | awk '{print $2+$6 "%"}' | sed "s/\..//g")