added no-refresh feature
This commit is contained in:
parent
3b6fa63e7b
commit
ef21228dcf
Binary file not shown.
|
@ -22,7 +22,7 @@ def get_validated_config(filename):
|
|||
{
|
||||
"name": str,
|
||||
"command": str,
|
||||
"refresh": And(int, lambda n : n > 0),
|
||||
"refresh": And(int, lambda n : n >= 0),
|
||||
Optional("prefix"): str,
|
||||
"format": {
|
||||
"align": Or("left", "center", "right"),
|
||||
|
|
|
@ -53,8 +53,9 @@ bar:
|
|||
# text that will be displayed for this module. `date` here is used as an
|
||||
# example. THIS IS A REQUIRED FIELD.
|
||||
command: "date"
|
||||
# How often to re-run the command and display the updated text. THIS IS A
|
||||
# REQUIRED FIELD.
|
||||
# How often (in milliseconds) to re-run the command and display the
|
||||
# updated text. If this value is 0, then the module will not be
|
||||
# refreshed. THIS IS A REQUIRED FIELD.
|
||||
refresh: 1000
|
||||
# Prefix to be printed before the text of the command.
|
||||
prefix: "DATE: "
|
||||
|
|
Loading…
Reference in a new issue