From b9792f7ba17346b358825000fe99bfa5299fbce2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 1 Dec 2025 11:10:19 +0100 Subject: [PATCH] Don't submit empty passwords on lock screen --- config/hypr/hyprlock.conf | 4 ++++ migrations/1764378788.sh | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 migrations/1764378788.sh diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index fb982bc1..f7a939c0 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -1,5 +1,9 @@ source = ~/.config/omarchy/current/theme/hyprlock.conf +general { + ignore_empty_input = true +} + background { monitor = color = $color diff --git a/migrations/1764378788.sh b/migrations/1764378788.sh new file mode 100644 index 00000000..de9b5f13 --- /dev/null +++ b/migrations/1764378788.sh @@ -0,0 +1,5 @@ +echo "Ignore empty passwords on lock screen" + +if ! grep -q "ignore_empty_input" ~/.config/hypr/hyprlock.conf; then + sed -i "/source =/a\ \ngeneral {\n ignore_empty_input = true\n}" ~/.config/hypr/hyprlock.conf +fi