A Powerline segment to show CPU temperature
Project description
powerline-cpu-temp
powerline-cpu-temp
is a Powerline segment to show CPU temperature.
Installation
Using pip:
pip3 install powerline-cpu-temp
Or clone this repository and run:
python3 setup.py install
Usage
First, it is required to add cpu_temp
and cpu_temp_gradient
highlight groups in the colorscheme configurations:
(You can easily customize the color scheme by changing the highlight group settings.)
{
"cpu_temp": { "fg": "gray8", "bg": "gray0", "attrs": [] },
"cpu_temp_gradient": { "fg": "green_yellow_orange_red", "bg": "gray0", "attrs": [] }
}
Then add the following settings to the Powerline configuration file:
{
"function": "powerline_cpu_temp.cpu_temp"
}
You can specify the arguments:
{
"function": "powerline_cpu_temp.cpu_temp",
"args": {
"format": "{value:.0f}°C",
"threshold_good": 50,
"threshold_bad": 90
}
}
Available arguments:
-
format
(string
): format string, receivesvalue
as an argument -
threshold_good
(float
): threshold for gradient level 0: temperature below this value will have this gradient level. -
threshold_bad
(float
): threshold for gradient level 100: temperature above this value will have this gradient level. Temperature betweenthreshold_good
andthreshold_bad
receive gradient level that indicates relative position in this interval: (100 * (cur-good) / (bad-good)
).
Dependencies
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for powerline_cpu_temp-0.1.0-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5858e492d7c8b594b75cb656e7c0eef57486ea07683f7c1a73deb683385cb67b |
|
MD5 | 485920270d259734563500e2fcadbe3f |
|
BLAKE2b-256 | ae1d0ee8579577146daa8b6830d9b0b15e2fa3d3f7c543a088125a671f67306a |
Hashes for powerline_cpu_temp-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fb7fe64872fb0af750539b483f99c4a90a4ed0ac9b0f6e2b70b02c90363ee4b |
|
MD5 | e1f044b4e7a4adc888be0f634f02ad72 |
|
BLAKE2b-256 | e976fdf953ca132052925ece4198bbb7cd1491cfff6eda1a0d533b3e72ccb824 |