bumblebee-status/bumblebee/module.py
Tobias Witek 0f6b418385 [modules] Add NIC module
Add a module that displays the status of all NICs (interface name, list
of IPs and state).

In its status, it also exposes whether it's a WiFi or a wired NIC.

For this functionality, additional code was implemented to allow a
module to add multiple elements to the bar at once. The framework calls
the module until its "next()" method return False.
2016-10-31 13:03:16 +01:00

21 lines
335 B
Python

class Module(object):
def __init__(self, args):
pass
def data(self):
pass
def critical(self):
return False
def warning(self):
return False
def state(self):
return "default"
def next(self):
return False
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4