configs/desktop/scripts/cpu.sh
Lucas Barbieri b55a2629fb move scripts to the right dir
turns out i was dumping them in 2 different places lmao
2024-01-16 13:08:59 -03:00

4 lines
101 B
Bash
Executable File

#!/bin/bash
top -bn2 | grep '%Cpu' | tail -1 | grep -P '(....|...) id,'|awk '{print "" 100-$8 "%"}'