dotfiles/eww/scripts/cpu_usage.sh
2024-08-26 11:05:11 -04:00

4 lines
113 B
Bash
Executable File

#!/bin/bash
echo "$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print 100 - $1""}')"