Skip to main content

Network Inteface Information Segment for Powerline

Project description

powerline-ifinfo-segment

A Powerline Segment to Display Network Interface Infos

Installation

pip install powerline-ifinfo-segment

Configuration

Define colorschemes to your liking

# colorschemes/default.json
{
  "groups": {
    "interface_up":      { "fg": "gray8", "bg": "gray0", "attrs": [] },
    "default_interface": { "fg": "gray8", "bg": "gray0", "attrs": [] },
    ...
}

Indicating if a certain interface is up

# themes/tmux/default.json
{
  "segments": {
    "right": [
      {
        "function": "powerline_ifinfo.ifinfo.interface_up",
        "args": {
          "interface": "utun3",
          "interface_up": "VPN Up",
          "interface_down": null
        }
      },
      ...
    ]
  }
}

Show the current default interface

# themes/tmux/default.json
{
  "segments": {
    "right": [
      {
        "function": "powerline_ifinfo.ifinfo.default_interface",
        "args": {
          "format": "{device}"
        }
      },
      ...
    ]
  }
}

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

powerline-ifinfo-segment-1.0.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

powerline_ifinfo_segment-1.0.1-py3-none-any.whl (3.2 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