Merge pull request #241 from TheEdgeOfRage/master
[modules/traffic] Add parameter to hide down networks
This commit is contained in:
commit
397fbef24f
2 changed files with 3 additions and 1 deletions
|
@ -180,7 +180,7 @@ Here are some screenshots for all themes that currently exist:
|
|||
|
||||
:exclamation: Some themes (all 'Powerline' themes) require [Font Awesome](http://fontawesome.io/) and a powerline-compatible font ([powerline-fonts](https://github.com/powerline/fonts), for example) to display all icons correctly.
|
||||
|
||||
Gruvbox Powerline (`-t gruvbox-powerline`) (contributed by [@paxy97](https://github.com/paxy97)):
|
||||
Gruvbox Powerline (`-t gruvbox-powerline`) (contributed by [@TheEdgeOfRage](https://github.com/TheEdgeOfRage)):
|
||||
|
||||
![Gruvbox Powerline](https://github.com/tobi-wan-kenobi/bumblebee-status/blob/master/screenshots/themes/powerline-gruvbox.png)
|
||||
|
||||
|
|
|
@ -76,6 +76,8 @@ class Module(bumblebee.engine.Module):
|
|||
state = "down"
|
||||
if len(self.get_addresses(interface)) > 0:
|
||||
state = "up"
|
||||
elif bumblebee.util.asbool(self.parameter("hide_down", True)):
|
||||
continue
|
||||
|
||||
if len(self._states["exclude"]) > 0 and state in self._states["exclude"]: continue
|
||||
if len(self._states["include"]) > 0 and state not in self._states["include"]: continue
|
||||
|
|
Loading…
Reference in a new issue