Hi,

I'd like to try sway on my Solus machine, but previous attempts didn't go too well. Apparently it does not work if logging in from lighdm?

Has anyone been successful on this and wanted to share configs for a fellow Solus user?

Thanks.

As far as I know, sway is a wayland compositor, and every app in solus are compiled to use x11, that could explain why you have problems using it. maybe xwayland could help a bit? I don't have experience with wayland nor xwayland though.

    right, you cannot use lightdm.
    sddm works, or just disable the login manager and login from tty.
    To disable e.g. lightdm:

    sudo systemctl set-default multi-user.target
    sudo systemctl disable lightdm
    sudo systemctl enable getty@tty1
    sudo systemctl disable getty@tty2

    you can then login on tty and start sway from there: sway
    you can also copy the following to your ~/.bash_profile to start sway automatically when logging in from tty1 (and to set some environment variables to make applications start in wayland mode:

    # If running from tty1 start sway
    if [ "$(tty)" = "/dev/tty1" ]; then
    export QT_QPA_PLATFORM=wayland
    export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
    export MOZ_ENABLE_WAYLAND=1
    exec sway
    fi

    note that, as stated by nolan , wayland isn't supported on solus. Wayland support for nautilus has just been dropped as far as i can tell. At least it doesn't start in wayland mode anymore for me.

    to enable lightdm again:

    sudo systemctl set-default graphical.target
    sudo systemctl enable lightdm
    sudo systemctl disable getty@tty1
    sudo systemctl enable getty@tty2

      528491 Wayland support for nautilus has just been dropped as far as i can tell. At least it doesn't start in wayland mode anymore for me.

      but i think when a) not using a touchscreen and b) not using scaling, all the x only apps still work reasonably fine in xwayland and most of the time, you won't notice it.

      ps: i used it on a surface

      528491 sudo systemctl set-default multi-user.target

      I use that line only, to run jwm on my Solus. I never touch the lightdm or the gettys.