A custom Powerline segment for displaying the current state of Podman containers
Project description
A custom Powerline segment for displaying the current state of Podman containers. Inspired by powerline-docker.
This segment also requires the Podman REST API service to be running:
podman system service -t 0 &
See Podman docs for more details.
Installation
Using uv
uv pip install powerline-podman
Using pip
pip install powerline-podman
Configuration
Colorscheme
Add the following config items to your Powerline colorscheme config file (usually located at ~/.config/powerline/colorschemes/),
see Powerline Colorschemes for more info.
{
"podman": { "fg": "gray8", "bg": "darkestpurple", "attrs": [] },
"podman_created": { "fg": "yellow", "bg": "darkestpurple", "attrs": [] },
"podman_exited": { "fg": "brightred", "bg": "darkestpurple", "attrs": [] },
"podman_paused": { "fg": "brightestorange", "bg": "darkestpurple", "attrs": [] },
"podman_running": { "fg": "green", "bg": "darkestpurple", "attrs": [] },
"podman_unknown": { "fg": "gray10", "bg": "darkestpurple", "attrs": [] },
"podman:divider": { "fg": "gray4", "bg": "darkestpurple", "attrs": [] }
}
Segment
Add the following config item to your Powerline segments config file, see Powerline Segment reference for more info.
The segment tries to connect to the libpod service at unix:///run/user/1000/podman.sock, which is where it lives on most Unix systems. You can change the URI with the uri argument.
Additionally, you can hide containers with specific states e.g. don't show exited containers by adding it to the ignore_states argument list.
The valid states are created, exited, paused, running, and unknown.
{
"function": "powerline_podman.podman",
"priority": 30,
"args": {
"uri": "unix:///run/user/1000/podman.sock",
"ignore_states": ["exited", "paused"]
}
}
- If adding the segment to the shell, edit
~/.config/powerline/themes/shell/default.json. - If adding the segment to the tmux status line, edit
~/.config/powerline/themes/tmux/default.json.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file powerline_podman-1.0.4.tar.gz.
File metadata
- Download URL: powerline_podman-1.0.4.tar.gz
- Upload date:
- Size: 14.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
053fb12684f7922d5e3879857c1537becaf6f1d6c180532decc672dae270a0e8
|
|
| MD5 |
b48035749611dc80bc63ddbe194b0e86
|
|
| BLAKE2b-256 |
7b385ca3b6c9acb1b149973ef09ce6eab66b512e6b751d1485254c761c7461e8
|
Provenance
The following attestation bundles were made for powerline_podman-1.0.4.tar.gz:
Publisher:
pypi-publish.yml on j4ckofalltrades/powerline-podman
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
powerline_podman-1.0.4.tar.gz -
Subject digest:
053fb12684f7922d5e3879857c1537becaf6f1d6c180532decc672dae270a0e8 - Sigstore transparency entry: 245628606
- Sigstore integration time:
-
Permalink:
j4ckofalltrades/powerline-podman@d04fafbb640d3e3204d1f6d1670f9b2da04e5988 -
Branch / Tag:
refs/tags/v1.0.4 - Owner: https://github.com/j4ckofalltrades
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@d04fafbb640d3e3204d1f6d1670f9b2da04e5988 -
Trigger Event:
push
-
Statement type:
File details
Details for the file powerline_podman-1.0.4-py3-none-any.whl.
File metadata
- Download URL: powerline_podman-1.0.4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bc5cbc2b68506952bf8cd34990db3347ff5e908a5008c22c2ec059155d8c10f
|
|
| MD5 |
f605b1ee80c26d10c288b22ae2f2034c
|
|
| BLAKE2b-256 |
d240b245a4fb357c733820625b6bd61a39e463daebaf6c42fdb9b9e906944be9
|
Provenance
The following attestation bundles were made for powerline_podman-1.0.4-py3-none-any.whl:
Publisher:
pypi-publish.yml on j4ckofalltrades/powerline-podman
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
powerline_podman-1.0.4-py3-none-any.whl -
Subject digest:
1bc5cbc2b68506952bf8cd34990db3347ff5e908a5008c22c2ec059155d8c10f - Sigstore transparency entry: 245628610
- Sigstore integration time:
-
Permalink:
j4ckofalltrades/powerline-podman@d04fafbb640d3e3204d1f6d1670f9b2da04e5988 -
Branch / Tag:
refs/tags/v1.0.4 - Owner: https://github.com/j4ckofalltrades
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@d04fafbb640d3e3204d1f6d1670f9b2da04e5988 -
Trigger Event:
push
-
Statement type: