2019-08-24 17:09:08 +00:00
|
|
|
waybar-clock(5)
|
|
|
|
|
|
|
|
# NAME
|
|
|
|
|
|
|
|
waybar - clock module
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
|
|
|
The *clock* module displays the current date and time.
|
|
|
|
|
2019-08-24 20:46:56 +00:00
|
|
|
# CONFIGURATION
|
|
|
|
|
2019-08-24 17:09:08 +00:00
|
|
|
*interval*: ++
|
|
|
|
typeof: integer ++
|
|
|
|
default: 60 ++
|
|
|
|
The interval in which the information gets polled.
|
|
|
|
|
|
|
|
*format*: ++
|
|
|
|
typeof: string ++
|
|
|
|
default: {:%H:%M} ++
|
2020-01-21 22:48:16 +00:00
|
|
|
The format, how the date and time should be displayed. ++
|
|
|
|
It uses the format of the date library. See https://howardhinnant.github.io/date/date.html#to_stream_formatting for details.
|
2019-08-24 17:09:08 +00:00
|
|
|
|
2020-01-20 23:47:15 +00:00
|
|
|
*timezone*: ++
|
|
|
|
typeof: string ++
|
|
|
|
default: inferred local timezone ++
|
2021-10-03 03:27:54 +00:00
|
|
|
The timezone to display the time in, e.g. America/New_York. ++
|
|
|
|
This field will be ignored if *timezones* field is set and have at least one value.
|
2020-01-20 23:47:15 +00:00
|
|
|
|
2020-08-13 02:46:51 +00:00
|
|
|
*timezones*: ++
|
|
|
|
typeof: list of strings ++
|
|
|
|
A list of timezones to use for time display, changed using the scroll wheel. ++
|
|
|
|
Use "" to represent the system's local timezone. Using %Z in the format or tooltip format is useful to track which time zone is currently displayed.
|
|
|
|
|
2020-01-21 22:48:16 +00:00
|
|
|
*locale*: ++
|
|
|
|
typeof: string ++
|
|
|
|
default: inferred from current locale ++
|
|
|
|
A locale to be used to display the time. Intended to render times in custom timezones with the proper language and format.
|
|
|
|
|
2020-08-06 00:31:36 +00:00
|
|
|
*today-format*: ++
|
|
|
|
typeof: string ++
|
|
|
|
default: <b><u>{}</u></b> ++
|
|
|
|
The format of today's date in the calendar.
|
|
|
|
|
2019-08-24 17:09:08 +00:00
|
|
|
*max-length*: ++
|
|
|
|
typeof: integer ++
|
|
|
|
The maximum length in character the module should display.
|
|
|
|
|
2021-02-01 16:34:51 +00:00
|
|
|
*min-length*: ++
|
|
|
|
typeof: integer ++
|
|
|
|
The minimum length in characters the module should take up.
|
|
|
|
|
|
|
|
*align*: ++
|
|
|
|
typeof: float ++
|
|
|
|
The alignment of the text, where 0 is left-aligned and 1 is right-aligned. If the module is rotated, it will follow the flow of the text.
|
|
|
|
|
2019-08-24 17:09:08 +00:00
|
|
|
*rotate*: ++
|
|
|
|
typeof: integer ++
|
|
|
|
Positive value to rotate the text label.
|
|
|
|
|
|
|
|
*on-click*: ++
|
|
|
|
typeof: string ++
|
|
|
|
Command to execute when clicked on the module.
|
|
|
|
|
2019-12-29 04:20:18 +00:00
|
|
|
*on-click-middle*: ++
|
|
|
|
typeof: string ++
|
|
|
|
Command to execute when middle-clicked on the module using mousewheel.
|
|
|
|
|
2019-08-24 17:09:08 +00:00
|
|
|
*on-click-right*: ++
|
|
|
|
typeof: string ++
|
|
|
|
Command to execute when you right clicked on the module.
|
|
|
|
|
2020-04-12 16:35:41 +00:00
|
|
|
*on-update*: ++
|
|
|
|
typeof: string ++
|
|
|
|
Command to execute when the module is updated.
|
|
|
|
|
2019-08-24 17:09:08 +00:00
|
|
|
*on-scroll-up*: ++
|
|
|
|
typeof: string ++
|
|
|
|
Command to execute when scrolling up on the module.
|
|
|
|
|
|
|
|
*on-scroll-down*: ++
|
|
|
|
typeof: string ++
|
|
|
|
Command to execute when scrolling down on the module.
|
|
|
|
|
|
|
|
*smooth-scrolling-threshold*: ++
|
|
|
|
typeof: double ++
|
|
|
|
Threshold to be used when scrolling.
|
|
|
|
|
2022-02-05 18:05:50 +00:00
|
|
|
*tooltip*: ++
|
|
|
|
typeof: bool ++
|
|
|
|
default: true ++
|
|
|
|
Option to disable tooltip on hover.
|
|
|
|
|
2019-08-24 17:09:08 +00:00
|
|
|
View all valid format options in *strftime(3)*.
|
|
|
|
|
2020-01-31 16:54:41 +00:00
|
|
|
# FORMAT REPLACEMENTS
|
|
|
|
|
|
|
|
*{calendar}*: Current month calendar
|
|
|
|
|
2019-08-26 21:28:24 +00:00
|
|
|
# EXAMPLES
|
2019-08-24 17:09:08 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
"clock": {
|
|
|
|
"interval": 60,
|
|
|
|
"format": "{:%H:%M}",
|
|
|
|
"max-length": 25
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2019-08-24 20:46:56 +00:00
|
|
|
# STYLE
|
2019-08-24 17:09:08 +00:00
|
|
|
|
|
|
|
- *#clock*
|