hyprwm / hyprlock

Hyprland's GPU-accelerated screen locking utility
BSD 3-Clause "New" or "Revised" License
824 stars 58 forks source link

Documentation on how to replace a display manager #564

Open sand4rt opened 2 hours ago

sand4rt commented 2 hours ago

Description

First of all, thank your for you work!

Asahi Linux comes with Fedora+SDDM by default, and it took me some time to figure out how to set up a unified login. Would it be beneficial to add this info to the documentation? as i've seen several questions on this topic

What i ended up doing was configuring SDDM to auto login _(also possible with greetd)_ and then exec-once hyprlock:

Add this to /etc/sddm.config.d/kde_settings.conf:

[Autologin]
Session=hyprland
User=MY_USER_NAME

NOTE: run whoami and replace the output with MY_USER_NAME

Add exec-once=hyprlock || hyprctl dispatch exit to ~/.config/hypr/hyprland.conf

sand4rt commented 2 hours ago

There is a splash though as described in: https://github.com/hyprwm/Hyprland/issues/5832#issuecomment-2090662706 (even with a empty config + a color as background to minimize computation). Not sure if there is an solution to this?