summaryrefslogtreecommitdiffstats
path: root/py3status/modules/static_string.py
diff options
context:
space:
mode:
Diffstat (limited to 'py3status/modules/static_string.py')
-rw-r--r--py3status/modules/static_string.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/py3status/modules/static_string.py b/py3status/modules/static_string.py
index d525238..c09176b 100644
--- a/py3status/modules/static_string.py
+++ b/py3status/modules/static_string.py
@@ -2,38 +2,38 @@
"""
Display static text
-Display static text given by "text" parameter
+Display static text given by "format" parameter
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
@author frimdo ztracenastopa@centrum.cz
"""
-
+
+
class Py3status:
color = None
- text = ""
+ format = ''
separator = True
-
+
def static_string(self, i3s_output_list, i3s_config):
-
+
response = {
- 'full_text': self.text,
+ 'full_text': self.format,
'color': self.color,
'separator': self.separator
}
-
+
return response
-
+
if __name__ == "__main__":
- from time import sleep
x = Py3status()
config = {
'color_good': '#00FF00',
'color_bad': '#FF0000',
}
print(x.static_string([], config))
-