Powerline custom Segments
Segment for Powerline showing Memory Usage, Python Version, Java Version, Docker Context
Installation
pip install powerlinecust-segments
Usage
Segment
- Activate the
docker_ctxsegment in~/.config/powerline/themes/shell/default.json
{
"function": "powerlinecust.segments.common.docker_ctx",
"display": true
}
- Activate the
pyenvsegment in~/.config/powerline/themes/shell/default.json
{
"function": "powerlinecust.segments.common.pyenv",
"display": true
}
- Activate the
jenvsegment in~/.config/powerline/themes/shell/default.json
{
"function": "powerlinecust.segments.common.jenv",
"display": true
},
- Activate the
mem_usage_percentsegment in~/.config/powerline/themes/shell/default.json
{
"function": "powerlinecust.segments.mem_usage.mem_usage_percent",
"display": true
}
Colorscheme
- Config highlight groups in colorscheme files, e.g.
~/.config/powerline/colorschemes/shell/default.json:
{
"groups": {
"pyenv:version": {
"bg": "gray3",
"fg": "green",
"attrs": []
},
"jenv:version": {
"bg": "black",
"fg": "red",
"attrs": [
"bold"
]
},
"mem_usage": {
"bg": "gray3",
"fg": "green",
"attrs": []
},
"docker_ctx": {
"bg": "black",
"fg": "green",
"attrs": []
}
}
}
Dependencies
The only dependency is psutil.
Metadata
Release files for powerlinecust-segments 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| powerlinecust_segments-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for powerlinecust_segments-0.1.0-py3-none-any.whl |
Release files / powerlinecust_segments-0.1.0-py3-none-any.whl
| Download URL | powerlinecust_segments-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e0412eacc8de9fa646c7e17905f7b4e8bcce17a066a52e0536fc2f93a73bfb3
|
|
BLAKE2b-256 checksum How to use checksums |
1b36a01c2f3c6091385203c6a12cf3b52243ce08420bb0ad0ea8298a3640346f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.16
|
Security for powerlinecust-segments 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.