hypr: refine hyprlogin greeter (greet label, fingerprint stub, shared username field)
This commit is contained in:
@@ -50,6 +50,8 @@ input-field {
|
||||
|
||||
font_family = $font
|
||||
placeholder_text = <i>password</i>
|
||||
placeholder_text_username = <i>username</i>
|
||||
fail_text = $FAIL
|
||||
|
||||
position = 0, 120
|
||||
halign = center
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# /etc/hyprlogin/hyprlogin.conf — installed from chezmoi via system/install-greeter.sh
|
||||
# Shared look (palette, font, input-field, clock, date) comes from the sourced fragment.
|
||||
# Shared look (palette, font, animations, input-field, clock, date) from sourced fragment.
|
||||
source = /etc/hyprlogin/apex-neon.conf
|
||||
|
||||
general {
|
||||
@@ -11,6 +11,16 @@ general {
|
||||
debug_log_path = /tmp/hyprlogin-debug.log
|
||||
}
|
||||
|
||||
# uncomment to enable fingerprint authentication
|
||||
# auth {
|
||||
# fingerprint {
|
||||
# enabled = true
|
||||
# ready_message = Scan fingerprint to unlock
|
||||
# present_message = Scanning...
|
||||
# retry_delay = 250 # in milliseconds
|
||||
# }
|
||||
# }
|
||||
|
||||
sessions {
|
||||
default_user = {{ .chezmoi.username }}
|
||||
default_session = hyprland-uwsm.desktop
|
||||
@@ -28,13 +38,6 @@ background {
|
||||
{{ end -}}
|
||||
{{- end }}
|
||||
|
||||
# greeter-only: username placeholder lives here so hyprlock doesn't carry it
|
||||
input-field {
|
||||
monitor =
|
||||
placeholder_text_username = <i>username</i>
|
||||
fail_text = $FAIL
|
||||
}
|
||||
|
||||
# session indicator (click cycles to next)
|
||||
label {
|
||||
monitor =
|
||||
@@ -60,3 +63,15 @@ label {
|
||||
halign = right
|
||||
valign = bottom
|
||||
}
|
||||
|
||||
# greet message — only shown once a username is set or entered
|
||||
label {
|
||||
monitor =
|
||||
text = Login as $GREETD_USER
|
||||
font_size = 16
|
||||
font_family = $font
|
||||
position = 0, 20
|
||||
halign = center
|
||||
valign = center
|
||||
hide_when_empty = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user