chore: Move autologin services to deck folders

This commit is contained in:
Kyle Gospodnetich 2023-09-11 11:13:40 -07:00
parent ebb055a5a2
commit a1d63b6996
4 changed files with 0 additions and 17 deletions

View File

@ -1,17 +0,0 @@
#!/usr/bin/env bash
source /etc/default/desktop-wayland
USER=$(id -nu 1000)
# GDM config
GDM_CONF='/etc/gdm/custom.conf'
# Configure autologin
sed -i 's/.*AutomaticLoginEnable=.*/AutomaticLoginEnable=true/g' ${GDM_CONF}
sed -i 's/.*AutomaticLogin=.*/AutomaticLogin='${USER}'/g' ${GDM_CONF}
if ${DESKTOP_WAYLAND}; then
sed -i 's/.*DefaultSession=.*/DefaultSession=gnome-wayland/g' ${GDM_CONF}
else
sed -i 's/.*DefaultSession=.*/DefaultSession=gnome-xorg/g' ${GDM_CONF}
fi