From 8a9aae45df91cf83cb7b9748ce267f27c964e2f1 Mon Sep 17 00:00:00 2001 From: Jyri-Petteri Paloposki Date: Tue, 13 Jan 2015 22:51:50 +0200 Subject: Support time/tztime definitions with extra parts in the section name --- py3status/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('}'): -- cgit v1.3