this is kinda cool i guess

This commit is contained in:
2025-08-15 00:18:38 -06:00
parent 3af656de22
commit 849d890144

4
bin/st-usage Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
CPU_USAGE=$(top -bn2 | grep "%Cpu(s)" | awk 'NR==2 {print 100 - $8}')
GPU_USAGE=$(nvtop -s | grep gpu_util | awk '{print $2}' | sed 's/"//g;s/,//')
echo "CPU:$CPU_USAGE% GPU:$GPU_USAGE"