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 the time-format attribute. πŸ’…
  • date β€” string. Current date, formatted using the date-format attribute. πŸŽ€

βš™οΈ CONFIGURATION βš™οΈ

Here are the config knobs, with type + whether they're required:

  • time-format β€” string, required: no. It's the strftime formatter for the time tag. Default: %H:%M. ✨
  • date-format β€” string, required: no. It's the strftime formatter for the date date β€” aka the date tag'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