Skip to main content

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, receives value 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 between threshold_good and threshold_bad receive gradient level that indicates relative position in this interval: (100 * (cur-good) / (bad-good)).

Dependencies

Metadata

Release files for powerline-cpu-temp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for powerline-cpu-temp 0.1.0
File Size Uploaded Provenance
powerline-cpu-temp-0.1.0.tar.gz 2.3 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for powerline-cpu-temp 0.1.0
File Interpreter ABI Platform
powerline_cpu_temp-0.1.0-py3.7.egg Legacy Egg format - - Details
powerline_cpu_temp-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / powerline-cpu-temp-0.1.0.tar.gz

Download URL powerline-cpu-temp-0.1.0.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f44b1b885eb360d3d8e135ab48112e63d3da18ba41d901f6ed7a16843bc9b698
BLAKE2b-256 checksum
How to use checksums
3418acb3c77df86bb3ecaf08ac6ff090b467cf745d8bb5554776b00ef808881b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Release files / powerline_cpu_temp-0.1.0-py3.7.egg

Download URL powerline_cpu_temp-0.1.0-py3.7.egg
Size 2.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
5858e492d7c8b594b75cb656e7c0eef57486ea07683f7c1a73deb683385cb67b
BLAKE2b-256 checksum
How to use checksums
ae1d0ee8579577146daa8b6830d9b0b15e2fa3d3f7c543a088125a671f67306a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Release files / powerline_cpu_temp-0.1.0-py3-none-any.whl

Download URL powerline_cpu_temp-0.1.0-py3-none-any.whl
Size 3.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6fb7fe64872fb0af750539b483f99c4a90a4ed0ac9b0f6e2b70b02c90363ee4b
BLAKE2b-256 checksum
How to use checksums
e976fdf953ca132052925ece4198bbb7cd1491cfff6eda1a0d533b3e72ccb824
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

Security for powerline-cpu-temp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page