yambar-modules-clock(5)
πΈ NAME πΈ
okay so bestie, this is yambar-modules-clock(5) from the File Formats Manual β the page for the clock module. clock β This module provides the current date and time. That's the whole gig: date + time, served fresh for your bar. π°οΈβ¨
π·οΈ TAGS π·οΈ
This module exposes these tags, and yes, they are lowkey iconic:
timeβ string. Current time, formatted using thetime-formatattribute. πdateβ string. Current date, formatted using thedate-formatattribute. π
βοΈ CONFIGURATION βοΈ
Here are the config knobs, with type + whether they're required:
time-formatβ string, required: no. It's thestrftimeformatter for thetimetag. Default:%H:%M. β¨date-formatβ string, required: no. It's thestrftimeformatter for the date date β aka thedatetag's formatting. Default:%x. πΈutcβ bool, required: no. Use GMT instead of local timezone. Default:false. π
π EXAMPLES π
Here's the example, copied exactly cuz rules are rules and we respect the rules:
bar:
left:
- clock:
time-format: "%H:%M %Z"
content:
string: {text: "{date} {time}"}
Look at that little bar config slaying in the wild. π π₯
π SEE ALSO π
Go read these too, bestie, fr fr:
This page is from the File Formats Manual for yambar-modules-clock(5), dated 2024-04-22. Mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- opensuse-leap 16.0: yambar 1.11.0-bp160.1.14 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms