rice v0.0.0
🍙 A customizable system information script.
Installation
(requires Node v8.5.0+)
npm
$ npm i -g rice
$ rice
yarn
$ yarn global add rice
$ rice
With npx
(requires npm v5.2+)
$ npx rice
Source
Clone this repository and install its dependencies:
$ npm install
$ npm run build
$ node dist/index.js
Usage
Customizable system information script
Usage:
$ rice [options]
Options:
-h, --help Print this text
-v, --version Output the version number
-d, --default-config Use the default config file (all options on)
-c, --clean Print everything cleanly (turns off Node and Hostname)
--no-align Turn off alignment of info
ASCII:
--no-ascii Turn off ascii art
--distro <distro> Specify which ascii logo to print
--no-balance Turn off centering of ascii art
Using the config.json
A file called config.json
is created which will look something like this:
{
"options": {
"CPU": {
"speed": true,
"cores": true
},
"OS": {
"release": true,
"version": true,
"arch": true
},
"Kernel": {
"version": true
},
"Shell": {
"path": true,
"version": true
},
"Uptime": {
"short": true
},
"Memory": {
"percentage": true
},
"Disk": {
"percentage": true
}
},
"bar": "--------------------",
"art": true,
"align": true,
"balance": true,
"order": [
"Host",
"bar",
"OS",
"Kernel",
"WM",
"DE",
"Terminal",
"Shell",
"Node",
"Editor",
"bar",
"Uptime",
"CPU",
"GPU",
"Resolution",
"Memory",
"Disk",
"Battery",
"Blocks"
]
}
- You can edit
config.json
by running the commandriceconfig
. - To reset
config.json
to its defaults, runricereset
.
Caveats
I've only tested this on macOS. It may work on some Linux distros. It will probably not work in Windows.
Prior Art
Rice has used ASCII files and taken much inspiration from the following projects:
License
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago