Skip to content

feat: add support for configurable first day of the week in calendar#4841

Open
Cprakhar wants to merge 2 commits intoAlexays:masterfrom
Cprakhar:feat/first-day-of-week-calendar
Open

feat: add support for configurable first day of the week in calendar#4841
Cprakhar wants to merge 2 commits intoAlexays:masterfrom
Cprakhar:feat/first-day-of-week-calendar

Conversation

@Cprakhar
Copy link
Copy Markdown
Contributor

@Cprakhar Cprakhar commented Feb 10, 2026

Description

Interpret clock.calendar.first-day-of-week integers as 0–6 with 0 = Sunday.
Log a warning if no correct value is provided, and fallback to the original logic.

Verification

image

Configuration

"clock": {
        "interval": 1,
        "format": "󰥔 {:%H:%M}",
        "timezone": "Asia/Kolkata",
        "locale": "en_IN.UTF-8",
        "tooltip": true,
        "tooltip-format": "<tt>{calendar}</tt>",
        "format-alt": "󰃭 {:%A, %B %d %Y}",
        "calendar": {
            "mode": "month",
            "mode-mon-col": 4,
            "on-scroll": -1,
            "first-day-of-week": 2,
            "format": {
                "months": "<span color='#fabd2f'><b>{}</b></span>",
                "days": "<span color='#83a598'><b>{}</b></span>",
                "today": "<span color='#fe8019'><b>{}</b></span>",
                "weekdays": "<span color='#8ec07c'><b>{}</b></span>"
            }
        },
        "actions": {
            "on-click-right": "mode",
            "on-scroll-up": "shift_up",
            "on-scroll-down": "shift_down"
        }
    }

Closes #4771

@Alexays
Copy link
Copy Markdown
Owner

Alexays commented Feb 23, 2026

Can you add this new option to the man? 🙏

@Cprakhar Cprakhar force-pushed the feat/first-day-of-week-calendar branch from 93b1d39 to 15d33f2 Compare February 24, 2026 07:01
@Cprakhar
Copy link
Copy Markdown
Contributor Author

Cprakhar commented Mar 7, 2026

@Alexays, I have updated the man page.

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.

I cannot change the calendar so that the week starts on Monday.

2 participants