im using Artix with OpenRC and i use LightDM
i noticed .xinitrc in my home directory wasnt running when i started dwm from lightdm, so i looked around the internet and got directed to an Xsession file in /etc/lightdm
started messing with it and now i cant log in, i tried clearing it or deleting it but with no success, anyone got any ideas?
logs: https://as.the.owner.of.mesyeti.uk/lightdmaaa.log
Try reinstalling the lightdm package. The original /etc/lightdm/Xsession file should be shipped with this package.
And yeah, don't edit or remove system configuration files without backing them up :)
EDIT: Also, you can find the downloaded lightdm package in the /var/cache/pacman/pkg directory and extract the file from there.
EDIT2: FYI, ~/.xinitrc has no effect when you use display managers like lightdm or others. It is used when you start your X server from console via the startx command.