Skip to main content

Powerline Custom Segments

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

powerlinecust_segments-0.1.0-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page