From 56299c80658445d1d96cd4b5e523873972cc654a Mon Sep 17 00:00:00 2001 From: Ultrabug Date: Tue, 5 Mar 2013 15:30:07 +0100 Subject: drop useless run_watch transformation, use i3status.conf format parameter instead --- py3status/__init__.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'py3status') diff --git a/py3status/__init__.py b/py3status/__init__.py index 57a3765..f01c306 100644 --- a/py3status/__init__.py +++ b/py3status/__init__.py @@ -191,9 +191,6 @@ def transform(j, **kwargs): if item['name'] == 'time': date = datetime.strptime(item['full_text'], I3STATUS_CONFIG['time_format']) + timedelta(seconds=kwargs['delta']) item['full_text'] = date.strftime(I3STATUS_CONFIG['time_format']) - # run_watch modification, only when color is enabled on i3status - if item['name'] == 'run_watch' and I3STATUS_CONFIG['colors']: - item['full_text'] = item['full_text'].split(':')[0] return j def load_from_file(filepath): -- cgit v1.3