Repository navigation
v1.1.0
Polycat v1.1.0
New Features
Sleeping mode
Polycat can now sleep and wake up on specific CPU load values (see in configuration section below).
Animation smoothing
Animations can smoothly transition between CPU load values (see in configuration section below).
Output formatting
You can format the output of polycat to contain CPU load information and some custom text (see in configuration section below).
New configuration options
You can now configure sleeping, smoothing, and output format of polycat.
Example (only new options are shown)
{
"smoothEnabled": true,
"smoothValue": 2000,
"sleepEnabled": true,
"sleepThreshold": 8,
"wakeupThreshold": 12,
"sleepFrames": "",
"sleepRate": 4,
"formatEnabled": false,
"format": "$frame $lcpu"
}smoothEnabled(boolean)
enables smooth transition between CPU load values.smoothValue(num [1-10000] inclusive)
number of milliseconds required to transition from 0% to 100%.sleepEnabled(boolean)
enables sleeping.sleepThreshold(number [1-100] inclusive)
sets the maximum CPU load needed to transition from active mode to sleeping mode.wakeupThreshold(number [1-100] inclusive, >sleepThreshold)
sets the minimum CPU load value needed to transition from sleeping mode to active mode.sleepFrames(non-empty string)
sets the frames to loop through in sleeping mode.sleepRate(number [1-255] inclusive)
sets the FPS for sleeping animation.formatEnabled(boolean)
enables output formatting.format(string)
sets the output format. $frame - animation, $lcpu - left-aligned CPU load value, $rcpu - right-aligned CPU load value .
Note: always escape $ characters with $, otherwise an error will be thrown.