Skip to content

clock: add {month_name} placeholder with standalone month support - #5292

Open
yars068 wants to merge 1 commit into
Alexays:masterfrom
yars068:master
Open

clock: add {month_name} placeholder with standalone month support#5292
yars068 wants to merge 1 commit into
Alexays:masterfrom
yars068:master

Conversation

@yars068

@yars068 yars068 commented Aug 31, 2026

Copy link
Copy Markdown

Support for POSIX %OB modifier of strftime() for clock/calendar module through a new placeholder {month_name}

What does this PR do?
Introduce a new {month_name} placeholder for the clock module tooltip. Unlike the standard library formatting which wraps month names in a date context (often forcing genitive case in inflected languages like Slavic, Baltic, or Finno-Ugric), this placeholder utilizes the POSIX %OB modifier to retrieve the standalone (nominative) month name.

Related issues
Closes #3890.

Checklist

  • Code is formatted with clang-format
  • Builds locally (ninja -C build)
  • Man page updated for any new/changed user-facing option (man/)
  • Tested against the affected module(s)

Distribuiton: Arch Linux, Hyprland 0.56.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong format specifier for month name (%B instead of %OB) in calendar tooltip

1 participant