1waybar-clock(5)               File Formats Manual              waybar-clock(5)
2
3
4

NAME

6       waybar - clock module
7

DESCRIPTION

9       The clock module displays the current date and time.
10

CONFIGURATION

12       interval:
13            typeof: integer
14            default: 60
15            The interval in which the information gets polled.
16
17       format:
18            typeof: string
19            default: {:%H:%M}
20            The format, how the date and time should be displayed.
21            It uses the format of the date library. See https://howardhin
22       nant.github.io/date/date.html#to_stream_formatting for details.
23
24       timezone:
25            typeof: string
26            default: inferred local timezone
27            The timezone to display the time in, e.g. America/New_York.
28
29       locale:
30            typeof: string
31            default: inferred from current locale
32            A locale to be used to display the time. Intended to render times
33       in custom timezones with the proper language and format.
34
35       max-length:
36            typeof: integer
37            The maximum length in character the module should display.
38
39       rotate:
40            typeof: integer
41            Positive value to rotate the text label.
42
43       on-click:
44            typeof: string
45            Command to execute when clicked on the module.
46
47       on-click-middle:
48            typeof: string
49            Command to execute when middle-clicked on the module using mouse‐
50       wheel.
51
52       on-click-right:
53            typeof: string
54            Command to execute when you right clicked on the module.
55
56       on-scroll-up:
57            typeof: string
58            Command to execute when scrolling up on the module.
59
60       on-scroll-down:
61            typeof: string
62            Command to execute when scrolling down on the module.
63
64       smooth-scrolling-threshold:
65            typeof: double
66            Threshold to be used when scrolling.
67
68       View all valid format options in strftime(3).
69

FORMAT REPLACEMENTS

71       {calendar}: Current month calendar
72

EXAMPLES

74           "clock": {
75               "interval": 60,
76               "format": "{:%H:%M}",
77               "max-length": 25
78           }
79

STYLE

81       ·   #clock
82
83
84
85                                  2020-04-11                   waybar-clock(5)
Impressum