Switching from lightdm to autologin xinit

i want to remove lightdm completely and make auto login, booting into i3 i read a about xinit but could not make it work or even auto login as far as i go is to get tty1 and login then startx but i dont want it to work in this way.
what shout i do ?

See if this helps you…

1 Like

For autologin see https://wiki.archlinux.org/index.php/Getty#Automatic_login_to_virtual_console

For automatic startx add this line to the end of ~/.bash_profile (if you use bash) or ~/.zprofile (if you use zsh):

[ $(tty) = /dev/tty1 ] && exec startx

It’s not quite how the installer sets things up, my version is more succinct but has the same result.

If you’re running one of the Korn shells then add the line to ~/.profile instead.

EDIT: use this to check which shell you’re running:

echo $SHELL
1 Like

For more on .xinitrc…

https://forum.archlabslinux.com/search?q=.xinitrc

1 Like

Well thanks guys i made it work finally thanks to guides you shared :grinning: