statusbar-scripts/sb-cpu
2023-08-23 19:45:38 +02:00

8 lines
101 B
Python
Executable File

#!/usr/bin/env python
import psutil
usage = psutil.cpu_percent(interval=1)
print(f"{usage}%")