docs: hyprlock as login screen

This commit is contained in:
Sander 2024-11-18 17:37:42 +01:00 committed by GitHub
parent ad67df8000
commit d861bf146e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -435,3 +435,21 @@ This is a side effect of the [decoration:blur:new_optimizations](../Configuring/
You have two options to resolve it.
1. Set `decoration:blur:new_optimizations` to `false` - This will preserve the exact same appearance, but may have a slight performance cost.
2. Set `decoration:blur:ignore_opacity` to `false` - This will drastically affect the appearance, but should maintain the original performance.
### How can I use Hyprlock as a login screen I start my computer?
To use a unified/single login screen you have to configure your display manager to auto login and run Hyprlock on startup. For [SDDM+KDE to auto login](https://wiki.archlinux.org/title/SDDM#Autologin) (also possible with (greetd)[https://wiki.archlinux.org/title/Greetd#Enabling_autologin]) you have to add this to `/etc/sddm.config.d/kde_settings.conf`:
```ini
[Autologin]
Session=hyprland
User=MY_USERNAME
```
> run `whoami` and replace the output with MY_USERNAME
Add this to `~/.config/hypr/hyprland.conf`:
```ini
exec-once=hyprlock || hyprctl dispatch exit
```