You are not logged in.
Hello,
I want to create an auto change login script using GDM. What I want to do is when the script is clicked it logs me out of my current session and logs me into a new one. For example, logs me out of gnome and into hyprland, with no other prompts or passwords.
I created one using SDDM by outputting to conf files and leveraging the relogin feature in the DM. I don't think GDM has a similar feature, but want to try to do the same in GDM.
See SDDM Script below:
#!/usr/bin/bash
echo '[Autologin]' > /etc/sddm.conf.d/autologin.conf
echo 'Relogin=true' >> /etc/sddm.conf.d/autologin.conf
echo 'Session=hyprland.desktop' >> /etc/sddm.conf.d/autologin.conf
sudo systemctl reset-failed sddm
sudo systemctl restart sddm
echo "Restarted SDDM"
Offline
Solved it, using timed login from GDM
Offline
Can you post how exactly did you achieve this?
Offline