Skip to content

Conversation

@ewtodd
Copy link
Contributor

@ewtodd ewtodd commented Jan 2, 2026

This adds an option to greetd to hide the profile image using the existing option for the locker. For both greetd and the locker, the time formatting for 12 hour formats is changed to add a preceding zero for single digit hours so that the clock always appears properly centered. This behavior is already present elsewhere in DMS such as in the vertical clock module.

Making a new pull request because it seems that I cannot reopen the original one.

return showSeconds ? "hh:mm:ss" : "hh:mm";
} else {
return showSeconds ? "h:mm:ss AP" : "h:mm AP";
return showSeconds ? "hh:mm:ss AP" : "hh:mm AP";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I'd like this to be an option or fine-tuned a bit, I like this on the lock screen but not on the clock bar widget (personally at least), maybe better to add more options besides 24-hour such as custom format, locale-aware format, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a custom format makes sense, or at least a list of different formats like there is for the date. I think it also makes sense to split it for top bar and lockscreen like the date currently is. If that sounds good to you, I can try and implement that.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea I think that makes sense, maybe a configurable dropdown like calendar formats (or two for lock/greeter and bar/elsewhere). But it probably needs a migration to be backwards compat with current 24H setting.

@ewtodd ewtodd force-pushed the master branch 4 times, most recently from c408171 to f13a2d8 Compare January 4, 2026 18:48
@ewtodd ewtodd closed this Jan 6, 2026
@ewtodd
Copy link
Contributor Author

ewtodd commented Jan 6, 2026

Sorry; did not mean to close. Will get back to this when I have time.

ewtodd added 2 commits January 9, 2026 18:10
…digit hours to ensure that everything is always centered properly - previously, it would only appear centered if on a double digit hour. also add getEffectiveTimeFormat function to GreetdSettings.
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.

2 participants