Artix Linux Forum

Artix Linux => Installation / Migration / Configuration => Topic started by: Zyxer on 16 December 2020, 06:23:15

Title: [SOLVED] Change first day of week to monday
Post by: Zyxer on 16 December 2020, 06:23:15
I have tried some things to change the first day of week to monday. But, first of all, locale doesn't seem to work. I tried

$ sudo export LC_TIME=en_GB

but it gives error.....

bash: warning: setlocale: LC_TIME: cannot change locale (en_GB)

The locale I uncommented is se_SV.UTF-8, and that should have monday as first day of week.

$ locale
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

How can I fix this? Mostly just want the first day of week to be monday and also for it to use metric system as default.
Title: Re: Change first day of week to monday
Post by: SGOrava on 16 December 2020, 08:06:56
apart from localtectl you can look at https://wiki.archlinux.org/index.php/Locale
Title: Re: Change first day of week to monday
Post by: Zyxer on 16 December 2020, 21:54:42
apart from localtectl you can look at https://wiki.archlinux.org/index.php/Locale
Ok, so I tried many things and had apparently missunderstood how locale worked this entire time. Because I almost gave up I tried things I did not expect from there.

My missunderstanding was that the locales have to be uncomented to be exported in /etc/locale.conf and that locale-gen did not export /etc/locale.gen as my default locale.

After enabling the locales in locale.gen, running "sudo locale-gen", then I could edit the locale.conf file with the locales I enabled in locale.gen. Changed that and rebooted.