A simple replacement for i3status that is both extensible and customizable.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

date.py 266B

12345678910
  1. import time
  2. def execute(config, section):
  3. fmt = config.get(section, 'format')
  4. result = dict()
  5. if config.has_option(section, 'color'):
  6. result['color'] = config.get(section, 'color')
  7. result['full_text'] = time.strftime(fmt)
  8. return result