Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Hyprland as wayland compositor for sddm

Open autofool opened this issue 2 years ago • 11 comments

Latest sddm offers wayland and x11 as optional display server. Currently sddm can run on weston and kwin_wayland compositor like this: CompositorCommand=weston --shell=fullscreen-shell.so CompositorCommand=kwin_wayland --no-lockscreen

I wonder if hyprland can be used like this since its also a compositor. I'm currently running with kwin but if hyprland is supported then it would remove bloated kwin deps.

As an experiment I tried using Hyprland as command and Hyprland does show up during boot but there's no sddm login screen (Obviously). Hyprland binary doesn't show much option on help and hyprctl is only used for communication with Hyprland during runtime. Is this feature feasible to implement in Hyprland?

autofool avatar Oct 09 '22 09:10 autofool

what?

So you want to launch hyprland as the first thing and then magically have sddm cover it up? No clue about how it does that, but if it uses the ext lockscreen protocol that's planned for support.

You could also exec-once your favorite lockscreen app tho to achieve a similiar effect, no?

vaxerski avatar Oct 09 '22 09:10 vaxerski

I'm not completely sure how sddm is working but I think its using external compositor to prepare session where its ready to start a client. Those compositor commands are written in it's configuration file so I'm not sure how sddm uses them during runtime. Of course you guys would know more about compositors and how they work.

autofool avatar Oct 09 '22 10:10 autofool

In this thread peeps are talking about detecting installed compositor and here how to change sddm's compositor from weston to kwin. Maybe that will shed some light on topic?

autofool avatar Oct 09 '22 10:10 autofool

that just seems to me like the compositor that SDDM is using to render itself. Why would you want that to be Hyprland?

vaxerski avatar Oct 09 '22 10:10 vaxerski

So that systems using sddm as login manager and hyprland as window manager will not have to depend on another compositor? I don't know if talk about in-house sddm-compositor in second thread I mentioned is solid or not. If it is then this will definitely be redundant. But if other proposal of detecting user installed compositor is accepted then maybe Hyprland could be one of the officially supported compositor for sddm to provide better user experience? It seems far fetched but I guess worth talking about?

autofool avatar Oct 09 '22 11:10 autofool

I think cage fits the bill better, since it's designed to only run one application, fullscreen. Just like a barebones X server running Steam or a web browser directly.

fufexan avatar Oct 09 '22 11:10 fufexan

If single application compositors are okay gamescope is also a viable alternative. It runs the Steam Deck GUI after all.

kkanungo17 avatar Nov 25 '22 10:11 kkanungo17

that just seems to me like the compositor that SDDM is using to render itself. Why would you want that to be Hyprland?

so that we don't have to install weston or kwin to run sddm using wayland rederer.

niksingh710 avatar Dec 30 '22 08:12 niksingh710

I think cage fits the bill better, since it's designed to only run one application, fullscreen. Just like a barebones X server running Steam or a web browser directly.

cage? how can I use it in place of sddm compositer?

niksingh710 avatar Dec 30 '22 08:12 niksingh710

I use cage to run qtgreet, it works okay but doesn't support mirroring displays so I'm stuck with the login screen on oen display and my other displays completely black.

TheSunCat avatar Dec 30 '22 10:12 TheSunCat

I myself use sway for running gtkgreet, it works perfectly fine.

fufexan avatar Dec 30 '22 19:12 fufexan

Right now you can enable hyprland as the sddm-git compositor by creating a simple file as shown in the arch wiki and replacing kwin suggested compositor with hyprland. However, at least on hyprland-git, this results in frequent sddm crashes. It seems that with some optimization it may be possible to solve the crashes and make it usable as a compositor for sddm.

daniandtheweb avatar Mar 06 '23 23:03 daniandtheweb

At the time of writing this issue I experienced only black screen with no SDDM. I guess SDDM itself is improving for Wayland support. Last I heard that Weston is also working for some people with SDDM but I couldn't make it work. Maybe it need's some special arguments. Weston would be much lighter and less bloated dependency than kwin. Let's see how SDDM and hyprland work after SDDM releases stable wayland support.

autofool avatar Jun 05 '23 13:06 autofool

At the time of writing this issue I experienced only black screen with no SDDM. I guess SDDM itself is improving for Wayland support. Last I heard that Weston is also working for some people with SDDM but I couldn't make it work. Maybe it need's some special arguments. Weston would be much lighter and less bloated dependency than kwin. Let's see how SDDM and hyprland work after SDDM releases stable wayland support.

arguments like this? ... [Wayland] CompositorCommand=weston --shell=fullscreen-shell.so ...

vlad196 avatar Aug 07 '23 12:08 vlad196