I am on plasma 6 and am struggling with what I want to accomplish.
Basically I want to auto log in without password and start a wayland session on tty3 and a gamescope session on tty4 so I can easily and quickly swap between the two of them
I don’t want to use a display manager and gamescipe session needs to be displayed first .
I have tried service files etc and sh files but no luck .
Here is my sh file any help would be appreciated
#!/bin/bash
Start dbus
/usr/bin/dbus-daemon --system
Auto-login
if [ “$(tty)” = “/dev/tty1” ]; then
export XDG_RUNTIME_DIR=/run/user/$(id -u marc)
echo “marc” | /usr/bin/login -f marc
fi
Start Wayland session
if [ “$(tty)” = “/dev/tty3” ]; then
/usr/bin/your-wayland-command
fi
Start gamescipe
if [ “$(tty)” = “/dev/tty4” ]; then
/usr/bin/gamescipe-command
fi
And service file
[Unit]
Description=Auto Start Script
After=multi-user.target
[Service]
Type=simple
ExecStart=/path/to/auto_start.sh
[Install]
WantedBy=multi-user.target