From cda9eb683fefd6cf5a7cabacec40bf0979a8902b Mon Sep 17 00:00:00 2001 From: Michael Aquilina Date: Sat, 24 Aug 2019 18:09:08 +0100 Subject: [PATCH] Add waybar-clock(5) --- meson.build | 1 + waybar-clock.5.scd | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 waybar-clock.5.scd diff --git a/meson.build b/meson.build index c3314d9..a7103b1 100644 --- a/meson.build +++ b/meson.build @@ -163,6 +163,7 @@ if scdoc.found() 'waybar.5.scd', 'waybar-backlight.5.scd', 'waybar-battery.5.scd', + 'waybar-clock.5.scd', ] foreach filename : man_files diff --git a/waybar-clock.5.scd b/waybar-clock.5.scd new file mode 100644 index 0000000..a0272a4 --- /dev/null +++ b/waybar-clock.5.scd @@ -0,0 +1,64 @@ +waybar-clock(5) + +# NAME + +waybar - clock module + +# DESCRIPTION + +The *clock* module displays the current date and time. + +*interval*: ++ + typeof: integer ++ + default: 60 ++ + The interval in which the information gets polled. + +*format*: ++ + typeof: string ++ + default: {:%H:%M} ++ + The format, how the date and time should be displayed. + +*max-length*: ++ + typeof: integer ++ + The maximum length in character the module should display. + +*rotate*: ++ + typeof: integer ++ + Positive value to rotate the text label. + +*on-click*: ++ + typeof: string ++ + Command to execute when clicked on the module. + +*on-click-right*: ++ + typeof: string ++ + Command to execute when you right clicked on the module. + +*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. + +View all valid format options in *strftime(3)*. + +# Example: + +``` +"clock": { + "interval": 60, + "format": "{:%H:%M}", + "max-length": 25 +} + +``` + +# Style + +- *#clock*