diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-04-08 16:38:30 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-04-08 16:38:30 +0530 |
commit | f94c1202afce479d61ff833d8cd05fe417c98288 (patch) | |
tree | 8fd0da2ca4fc57f90c194757cb77628edc0b9852 /.config/lemonblocks/modules/cpu_load.sh | |
parent | 5db7f0e0671acfb9d03145d21a3645c80efc167e (diff) |
enabled golang and other modules in starship, trying to push to this repo after messing everything up
Diffstat (limited to '.config/lemonblocks/modules/cpu_load.sh')
-rwxr-xr-x | .config/lemonblocks/modules/cpu_load.sh | 10 |
1 files changed, 0 insertions, 10 deletions
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 |