From eb93387290f5c466fa62ecd91a952bbe7cf4d092 Mon Sep 17 00:00:00 2001 From: limbe-osc Date: Sat, 6 Aug 2016 08:29:25 +0800 Subject: [PATCH] ci fix --- dev-requirements.txt | 1 + i3pystatus/deadbeef.py | 1 + i3pystatus/network.py | 8 +------- i3pystatus/window_title.py | 6 +++--- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/dev-requirements.txt b/dev-requirements.txt index ed38b0e..d4ff798 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -3,3 +3,4 @@ sphinx>=1.1 colour>=0.0.5 mock>=1.0 pep8>=1.5.7 +i3ipc>=1.2.0 diff --git a/i3pystatus/deadbeef.py b/i3pystatus/deadbeef.py index 013bc36..f6bb077 100644 --- a/i3pystatus/deadbeef.py +++ b/i3pystatus/deadbeef.py @@ -22,6 +22,7 @@ class DeaDBeeF(IntervalModule): Requires the `DeaDBeeF` player. .. rubric:: Available formatters + * `{status}` — player status * `{album}` — album * `{artist}` — artist diff --git a/i3pystatus/network.py b/i3pystatus/network.py index 4b24106..3d066b6 100644 --- a/i3pystatus/network.py +++ b/i3pystatus/network.py @@ -231,16 +231,9 @@ class NetworkTraffic: class Network(IntervalModule, ColorRangeModule): """ Displays network information for an interface. - formatp support - if u wanna display recv/send speed separate in dynamic color mode, please enable pango hint. - status.register( - "network", - hints={"markup": "pango"}, - ) - Requires the PyPI packages `colour`, `netifaces`, `psutil` (optional, see below) and `basiciw` (optional, see below). @@ -276,6 +269,7 @@ class Network(IntervalModule, ColorRangeModule): * `{rx_tot_Mbytes}` — total Mbytes received * `{tx_tot_Mbytes}` — total Mbytes sent """ + settings = ( ("format_up", "format string"), ("format_down", "format string"), diff --git a/i3pystatus/window_title.py b/i3pystatus/window_title.py index 87f02b8..359e1d2 100644 --- a/i3pystatus/window_title.py +++ b/i3pystatus/window_title.py @@ -56,9 +56,9 @@ class WindowTitle(Module): # don't show window title when the window already has means # to display it - if not self.always_show and ( - w.border == "normal" or w.type == "workspace" - or (p.layout in ("stacked", "tabbed") and len(p.nodes) > 1)): + if (not self.always_show and + (w.border == "normal" or w.type == "workspace" or + (p.layout in ("stacked", "tabbed") and len(p.nodes) > 1))): return self.empty_title else: title = w.name