From 1f51d199a04c92703034a3c3babd2c0e3f509673 Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Sun, 31 May 2026 14:55:06 +0200 Subject: [PATCH] hypr: refine hyprlogin greeter (greet label, fingerprint stub, shared username field) --- .chezmoitemplates/apex-neon-lock.conf | 2 ++ system/etc/hyprlogin/hyprlogin.conf.tmpl | 31 ++++++++++++++++++------ 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/.chezmoitemplates/apex-neon-lock.conf b/.chezmoitemplates/apex-neon-lock.conf index dd5de84..d8acebe 100644 --- a/.chezmoitemplates/apex-neon-lock.conf +++ b/.chezmoitemplates/apex-neon-lock.conf @@ -50,6 +50,8 @@ input-field { font_family = $font placeholder_text = password + placeholder_text_username = username + fail_text = $FAIL position = 0, 120 halign = center diff --git a/system/etc/hyprlogin/hyprlogin.conf.tmpl b/system/etc/hyprlogin/hyprlogin.conf.tmpl index 1345f4e..6cff8b7 100644 --- a/system/etc/hyprlogin/hyprlogin.conf.tmpl +++ b/system/etc/hyprlogin/hyprlogin.conf.tmpl @@ -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 = username - 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 +}