Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clock module: Support for other calendars e.g. Hijri, Chinese ... #2260

Open
zefr0x opened this issue Jun 28, 2023 · 3 comments
Open

clock module: Support for other calendars e.g. Hijri, Chinese ... #2260

zefr0x opened this issue Jun 28, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@zefr0x
Copy link

zefr0x commented Jun 28, 2023

As what some people know, English is not the only language in the world, and USA is not the only country in the world.

The Gregorian calendar is also not the only calendar in the world. Of course some of them are historical and no one use them, but some of them are used officially in some countries like the Hijri (Islamic), Chinese, Japanese (just the era name), Hebrew and the Julian calendar.

I know that I can use a custom module, but I think it should be easy to implement since we have the date C++ library which is based on the <chrono> header. (I'm not great in C++ and I haven't search a lot, so there might be a better library or some problems)

Personally I am interested in the Hijri calendar since I use it a lot, and I am working in a custom module to have it for now.

@Alexays Alexays added the enhancement New feature or request label Jul 4, 2023
@mattfbacon
Copy link

Also, why is Sunday first? Any way to change to Monday?

@manio
Copy link

manio commented Jun 25, 2024

Also, why is Sunday first? Any way to change to Monday?

I'd also like to change this. The function for this is probably here:

auto waybar::modules::Clock::first_day_of_week() -> weekday {

Any way to change/configure this hardcoded Sunday value?

@mattfbacon
Copy link

fwiw I switched to using cal -m directly. https://github.com/mattfbacon/dotfiles/blob/88ffd825eba12406e0ce43be24edf3dffa47142b/framework/sway/.config/waybar/clock.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants