Cant login to sway from sddm

I’ve been mostly using KDE Plasma but now I’ve decided to install Sway to use as an alternative. I want to keep both desktop environments and be able to switch between them tho.

I enter SDDM when I boot my PC, enter my credentials and pick Sway (Wayland) session but when I login I just get a black screen and nothing happens. I just end up having to TTY and log in from there. I don’t have or use NVIDIA drivers on my machine.

How can I fix this? I know Sway doesn’t officially support SDDM but like I said I do intend on keeping KDE. Unless I can replace it with another login manager? Thanks.

I use this:

#!/bin/bash
#sway --unsupported-gpu
export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1
export QT_QPA_PLATFORM=wayland
export WLR_NO_HARDWARE_CURSORS=1
export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_DESKTOP=sway
export MOZ_WAYLAND=1
export MOZ_ENABLE_WAYLAND=1
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export GDK_BACKEND="wayland,x11"
#export __GL_GSYNC_ALLOWED=0
#export __GL_VRR_ALLOWED=0
#export WLR_DRM_NO_ATOMIC=1
#export GBM_BACKEND=nvidia-drm
#export __GLX_VENDOR_LIBRARY_NAME=nvidia
export QT_QPA_PLATFORMTHEME=qt5ct 
sway --unsupported-gpu

edit the /usr/share/wayland-sessions/sway.desktop

[Desktop Entry]
Name=Sway
Comment=An i3-compatible Wayland compositor
Exec=/home/xircon/.config/sway/swaylaunch.sh
Type=Application

But if sway updates, this file gets updated! So I chattr it.

I use sddm (forgot!)

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.