From f94c1202afce479d61ff833d8cd05fe417c98288 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 8 Apr 2021 16:38:30 +0530 Subject: enabled golang and other modules in starship, trying to push to this repo after messing everything up --- .config/lemonblocks/modules/cpu_load.sh | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100755 .config/lemonblocks/modules/cpu_load.sh (limited to '.config/lemonblocks/modules/cpu_load.sh') diff --git a/.config/lemonblocks/modules/cpu_load.sh b/.config/lemonblocks/modules/cpu_load.sh deleted file mode 100755 index 1a677a9..0000000 --- a/.config/lemonblocks/modules/cpu_load.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -read cpu a b c previdle rest < /proc/stat -prevtotal=$((a+b+c+previdle)) -sleep 0.5 -read cpu a b c idle rest < /proc/stat -total=$((a+b+c+idle)) -cpu=$((100*( (total-prevtotal) - (idle-previdle) ) / (total-prevtotal) )) - -printf " CPU:%s%% " $cpu -- cgit v1.2.3