diff options
Diffstat (limited to 'py3status/modules/static_string.py')
| -rw-r--r-- | py3status/modules/static_string.py | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/py3status/modules/static_string.py b/py3status/modules/static_string.py index c09176b..bb12ec2 100644 --- a/py3status/modules/static_string.py +++ b/py3status/modules/static_string.py @@ -1,35 +1,36 @@ # -*- coding: utf-8 -*- """ -Display static text - -Display static text given by "format" parameter +Display static text. Configuration parameters: - - text : text that should be printed - - separator : whether the separator is shown or not (True or False) - - format : text that should be printed - color : color of printed text - - on_click : read goo.gl/u10n0x + - format : text that should be printed + - separator : whether the separator is shown or not (true or false) @author frimdo ztracenastopa@centrum.cz """ +from time import time + class Py3status: + """ + """ + # available configuration parameters color = None format = '' separator = True def static_string(self, i3s_output_list, i3s_config): - response = { - 'full_text': self.format, + 'cached_until': time() + 60, 'color': self.color, + 'full_text': self.format, 'separator': self.separator - } - + } return response + if __name__ == "__main__": x = Py3status() config = { |
