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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file powerlinecust_segments-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for powerlinecust_segments-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e0412eacc8de9fa646c7e17905f7b4e8bcce17a066a52e0536fc2f93a73bfb3
MD5 c8b94a431e886f58102006139a67022e
BLAKE2b-256 1b36a01c2f3c6091385203c6a12cf3b52243ce08420bb0ad0ea8298a3640346f

See more details on using hashes here.

Supported by

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