scripts/i3blocks/Arch/cpu.sh

6 lines
86 B
Bash
Executable File

#!/bin/bash
Cpu=$(mpstat -u | grep "all" | awk '{print $4"%"}')
echo -e "$Cpu"