diff options
| author | Jyri-Petteri Paloposki <jyri-petteri.paloposki@iki.fi> | 2015-01-13 22:51:50 +0200 |
|---|---|---|
| committer | Jyri-Petteri Paloposki <jyri-petteri.paloposki@iki.fi> | 2015-01-13 22:51:50 +0200 |
| commit | 8a9aae45df91cf83cb7b9748ce267f27c964e2f1 (patch) | |
| tree | df6c8e6da0981901a68e8f37746347d023109e84 /py3status/__init__.py | |
| parent | eca7a8dba9b1d3d8b90fffb014ea19d316b2a524 (diff) | |
Support time/tztime definitions with extra parts in the section name
Diffstat (limited to 'py3status/__init__.py')
| -rwxr-xr-x | py3status/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py3status/__init__.py b/py3status/__init__.py index cfc467f..f1fcbda 100755 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -260,7 +260,7 @@ class I3status(Thread): on_c[section_name][button] = value # override time format - if section_name in ['time', 'tztime'] and key == 'format': + if section_name.split(' ')[0] in ['time', 'tztime'] and key == 'format': self.time_format = value if line.endswith('}'): |
