Install numlockx:

1
yay -S numlockx

Open /etc/lightdm/lightdm.conf and add the following under [Seat:*]:

1
2
[Seat:*]
greeter-setup-script=/usr/bin/numlockx on

And you’re done!!