forked from external/yambar
doc: clock
This commit is contained in:
parent
4b79603129
commit
f7c9a1a47e
1 changed files with 42 additions and 0 deletions
|
@ -181,6 +181,48 @@ bar:
|
||||||
string: {text: "BAT: {capacity}% {estimate}"}
|
string: {text: "BAT: {capacity}% {estimate}"}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# CLOCK
|
||||||
|
|
||||||
|
This module provides the current date and time.
|
||||||
|
|
||||||
|
## TAGS
|
||||||
|
|
||||||
|
[[ *Name*
|
||||||
|
:[ *Type*
|
||||||
|
:[ *Description*
|
||||||
|
| time
|
||||||
|
: string
|
||||||
|
: Current time, formatted using the _time-format_ attribute
|
||||||
|
| date
|
||||||
|
: string
|
||||||
|
: Current date, formatted using the _date-format_ attribute
|
||||||
|
|
||||||
|
## CONFIGURATION
|
||||||
|
|
||||||
|
[[ *Name*
|
||||||
|
:[ *Type*
|
||||||
|
:[ *Req*
|
||||||
|
:[ *Description*
|
||||||
|
| time-format
|
||||||
|
: string
|
||||||
|
: no
|
||||||
|
: *strftime* formatter for the _time_ tag (default=*%H:%M*)
|
||||||
|
| date-format
|
||||||
|
: string
|
||||||
|
: no
|
||||||
|
: *strftime* formatter for the _date_ date (default=*%x*)
|
||||||
|
|
||||||
|
## EXAMPLES
|
||||||
|
|
||||||
|
```
|
||||||
|
bar:
|
||||||
|
left:
|
||||||
|
- clock:
|
||||||
|
time-format: "%H:%M %Z"
|
||||||
|
content:
|
||||||
|
string: {text: "{date} {time}"}
|
||||||
|
```
|
||||||
|
|
||||||
# SEE ALSO
|
# SEE ALSO
|
||||||
|
|
||||||
*f00bar-particles*(5), *f00bar-tags*(5), *f00bar-decorations*(5)
|
*f00bar-particles*(5), *f00bar-tags*(5), *f00bar-decorations*(5)
|
||||||
|
|
Loading…
Add table
Reference in a new issue