apognu / tuigreet

Graphical console greeter for greetd
GNU General Public License v3.0
986 stars 45 forks source link

--time Date time format specification #49

Closed funcrab closed 2 years ago

funcrab commented 2 years ago

Thank you for making this useful tool.

I'm using a Japanese locale, and the kanji characters in the date/time part are garbled and cannot be displayed in the font on agetty. image For example, it would be helpful if the --time argument could be used to specify the display format in the format of the date command.

Thank you for your consideration.

funcrab commented 2 years ago

After adding the following settings, I was able to set the display to English.

# cat /etc/locale.conf
LANG=C
# 

image After that, put in the following settings as a normal user, it should work fine for normal use.

$ cat ~/.config/locale.conf
LANG=ja_JP.UTF-8
$ 

If this is very easy to implement, consider it. If not, or if it doesn't interest you, feel free to close it. Thanks for your work.

DjLogozzo commented 2 years ago

You can localise this program to your native locale by creating a locale file. PR #36 and #37 contain examples of this.

funcrab commented 2 years ago

I am thinking that due to agetty's limitation (only 256 or 512 character representation fonts can be used), unicode fonts cannot be displayed as Japanese, and tuigreet cannot display Japanese either. Is that correct?

https://wiki.archlinux.org/title/Linux_console#Fonts

Note: This section is about the Linux console. For alternative console solutions offering more features (full Unicode fonts, modern graphics adapters etc.), see KMSCON or similar projects.

If so, do you think it is possible to use tuigreet with other consoles, such as KMSCON or fbterm? As far as I have run it lightly, I have not been able to get tuigreet to show up within KMSCON.

funcrab commented 2 years ago

I don't think there's any problem, so I'll close it.