Skip to main content

Powerline custom Segments

Segment for Powerline showing Memory Usage, Python Version, Java Version, Docker Context Screenshot

Installation

pip install powerlinecust-segments

Usage

Segment

  • Activate the docker_ctx segment in ~/.config/powerline/themes/shell/default.json
{
    "function": "powerlinecust.segments.common.docker_ctx",
    "display": true
}           
  • Activate the pyenv segment in ~/.config/powerline/themes/shell/default.json
{
    "function": "powerlinecust.segments.common.pyenv",
    "display": true
}
  • Activate the jenv segment in ~/.config/powerline/themes/shell/default.json
{
    "function": "powerlinecust.segments.common.jenv",
    "display": true
},
  • Activate the mem_usage_percent segment 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)

Table of built distributions (wheels) for powerlinecust-segments 0.1.0
File Interpreter ABI Platform
powerlinecust_segments-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

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