You are not logged in.

#1 2023-10-17 18:51:06

gipple
Member
Registered: 2023-10-17
Posts: 2

SDDM running on Wayland and Hyprland

Hello everyone, I'm new here (I was active on the Italian forum a while ago, but I noticed only now it's been closed a while ago) anyway, nice to meet you all.
For a couple of reasons, I had to stick with Windows for a while (almost 5 years).but now I have the opportunity to dedicate again a machine to Linux, but I am probably a little rusty.
Also, since I have to re-do everything I wanted to try Hyprland and Wayland. I've installed the basics but I need some help with SDDM (never used it, since I've always used LightDM before, but it doesent run itself on Wayland so I opted for something else). In the configuration file of SDDM I see:

[General]
# Which display server should be used.
# Valid values are: x11, x11-user, wayland. Wayland support is experimental
DisplayServer=x11

and

[Wayland]
# Path of the Wayland compositor to execute when starting the greeter
CompositorCommand=weston --shell=fullscreen-shell.so

# Enable Qt's automatic high-DPI scaling
EnableHiDPI=true

# Path to a script to execute when starting the desktop session
SessionCommand=/usr/share/sddm/scripts/wayland-session

# Comma-separated list of directories containing available Wayland sessions
SessionDir=/usr/local/share/wayland-sessions,/usr/share/wayland-sessions

# Path to the user session log file
SessionLogFile=.local/share/sddm/wayland-session.log

To switch to a fully Wayland SDDM I need to change the DisplayServer. Splendid. But I think I need to change the CompositorCommand too, right? What is the Hyprland equivalent of the weston one? (I've havent installed weston and I dont want too unless it's indispensable). If I simply change the DisplayServer it keeps returning to the login screen (not immediatly but almost).
Thanks

Offline

#2 2023-10-31 17:10:56

Mxs
Member
Registered: 2022-04-24
Posts: 1

Re: SDDM running on Wayland and Hyprland

Hello,

Change your sddm config with the following :

[General]
HaltCommand=/usr/bin/systemctl poweroff
RebootCommand=/usr/bin/systemctl reboot
DisplayServer=wayland
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell

[Wayland]
CompositorCommand=Hyprland

[Users]
MaximumUid=60513
MinimumUid=1000

Then put an hyprland config file in /var/lib/sddm/.config/hypr/

Offline

#3 2024-03-11 22:15:40

alba4k
Member
From: Switzerland
Registered: 2021-12-05
Posts: 142
Website

Re: SDDM running on Wayland and Hyprland

While this works, sddm only shows the default background and some of the usual stuff. How could I actually make it display the greeter window (and, of course, nothing else) like it does in weston?

Offline

Board footer

Powered by FluxBB