Don't submit empty passwords on lock screen

This commit is contained in:
David Heinemeier Hansson 2025-12-01 11:10:19 +01:00
parent 9450ac868e
commit b9792f7ba1
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,9 @@
source = ~/.config/omarchy/current/theme/hyprlock.conf
general {
ignore_empty_input = true
}
background {
monitor =
color = $color

5
migrations/1764378788.sh Normal file
View File

@ -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