Back (Current repo: dotfiles)

my dotfiles to make it easy to transfer my settings
To clone this repository:
git clone https://git.viktor1993.net/dotfiles.git
Log | Download | Files | Refs

cpu_usage (120B)


#!/bin/bash

IDLE=$(mpstat 1 1 | grep Average | awk '{print $NF}')
CPU=$(echo "100 - $IDLE" | bc -l)

echo "${CPU}%"