powerlinecust-segments


Namepowerlinecust-segments JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryPowerline Custom Segments
upload_time2024-05-11 19:26:54
maintainerNone
docs_urlNone
authorAvijit Pal
requires_python>=3.9
licenseMIT License
keywords powerline memory pyenv jenv docker
VCS
bugtrack_url
requirements powerline-status psutil
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Powerline custom Segments

Segment for Powerline showing Memory Usage, Python Version, Java Version, Docker Context 
![Screenshot](images/screenshot.png "Screenshot")

## Installation
```
pip install powerlinecust-segments
```

## Usage
### Segment
- Activate the `docker_ctx` segment in `~/.config/powerline/themes/shell/default.json`
```json
{
    "function": "powerlinecust.segments.common.docker_ctx",
    "display": true
}           
```
- Activate the `pyenv` segment in `~/.config/powerline/themes/shell/default.json`
```json
{
    "function": "powerlinecust.segments.common.pyenv",
    "display": true
}
```
- Activate the `jenv` segment in `~/.config/powerline/themes/shell/default.json`
```json
{
    "function": "powerlinecust.segments.common.jenv",
    "display": true
},
```
- Activate the `mem_usage_percent` segment in `~/.config/powerline/themes/shell/default.json`
```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`:
```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](https://github.com/giampaolo/psutil).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "powerlinecust-segments",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "powerline, memory, pyenv, jenv, docker",
    "author": "Avijit Pal",
    "author_email": null,
    "download_url": null,
    "platform": null,
    "description": "# Powerline custom Segments\n\nSegment for Powerline showing Memory Usage, Python Version, Java Version, Docker Context \n![Screenshot](images/screenshot.png \"Screenshot\")\n\n## Installation\n```\npip install powerlinecust-segments\n```\n\n## Usage\n### Segment\n- Activate the `docker_ctx` segment in `~/.config/powerline/themes/shell/default.json`\n```json\n{\n    \"function\": \"powerlinecust.segments.common.docker_ctx\",\n    \"display\": true\n}           \n```\n- Activate the `pyenv` segment in `~/.config/powerline/themes/shell/default.json`\n```json\n{\n    \"function\": \"powerlinecust.segments.common.pyenv\",\n    \"display\": true\n}\n```\n- Activate the `jenv` segment in `~/.config/powerline/themes/shell/default.json`\n```json\n{\n    \"function\": \"powerlinecust.segments.common.jenv\",\n    \"display\": true\n},\n```\n- Activate the `mem_usage_percent` segment in `~/.config/powerline/themes/shell/default.json`\n```json\n{\n    \"function\": \"powerlinecust.segments.mem_usage.mem_usage_percent\",\n    \"display\": true\n}\n```\n\n### Colorscheme\n- Config highlight groups in colorscheme files, e.g. `~/.config/powerline/colorschemes/shell/default.json`:\n```json\n{\n    \"groups\": {\n        \"pyenv:version\": {\n            \"bg\": \"gray3\",\n            \"fg\": \"green\",\n            \"attrs\": []\n        },\n        \"jenv:version\": {\n            \"bg\": \"black\",\n            \"fg\": \"red\",\n            \"attrs\": [\n                \"bold\"\n            ]\n        },\n        \"mem_usage\": {\n            \"bg\": \"gray3\",\n            \"fg\": \"green\",\n            \"attrs\": []\n        },\n        \"docker_ctx\": {\n            \"bg\": \"black\",\n            \"fg\": \"green\",\n            \"attrs\": []\n        }\n    }\n}\n```\n\n## Dependencies\nThe only dependency is [psutil](https://github.com/giampaolo/psutil).\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Powerline Custom Segments",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/avijitpal9/powerlinecust-segments"
    },
    "split_keywords": [
        "powerline",
        " memory",
        " pyenv",
        " jenv",
        " docker"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1b36a01c2f3c6091385203c6a12cf3b52243ce08420bb0ad0ea8298a3640346f",
                "md5": "c8b94a431e886f58102006139a67022e",
                "sha256": "1e0412eacc8de9fa646c7e17905f7b4e8bcce17a066a52e0536fc2f93a73bfb3"
            },
            "downloads": -1,
            "filename": "powerlinecust_segments-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c8b94a431e886f58102006139a67022e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 4765,
            "upload_time": "2024-05-11T19:26:54",
            "upload_time_iso_8601": "2024-05-11T19:26:54.944055Z",
            "url": "https://files.pythonhosted.org/packages/1b/36/a01c2f3c6091385203c6a12cf3b52243ce08420bb0ad0ea8298a3640346f/powerlinecust_segments-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-11 19:26:54",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "avijitpal9",
    "github_project": "powerlinecust-segments",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "powerline-status",
            "specs": [
                [
                    "==",
                    "2.7"
                ]
            ]
        },
        {
            "name": "psutil",
            "specs": [
                [
                    "==",
                    "5.9.8"
                ]
            ]
        }
    ],
    "lcname": "powerlinecust-segments"
}
        
Elapsed time: 0.31409s