From ceedf474cb19601c4ab7399be8849386c397ccb7 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 19 Jul 2025 12:34:34 -0500 Subject: [PATCH] Include failed attempt counter and notice when you are locked out for 10 mins Closes #229 Co-authored-by: @jhosdev --- bin/omarchy-refresh-hyprlock | 5 +++++ config/hypr/hyprlock.conf | 6 +----- migrations/1752899588.sh | 2 ++ 3 files changed, 8 insertions(+), 5 deletions(-) create mode 100755 bin/omarchy-refresh-hyprlock create mode 100644 migrations/1752899588.sh diff --git a/bin/omarchy-refresh-hyprlock b/bin/omarchy-refresh-hyprlock new file mode 100755 index 0000000..0c1167c --- /dev/null +++ b/bin/omarchy-refresh-hyprlock @@ -0,0 +1,5 @@ +#!/bin/bash + +# Overwrite local Hyprlock settings with the latest in Omarchy, but create a backup +cp -f ~/.config/hypr/hyprlock.conf ~/.config/hypr/hyprlock.conf.bak 2>/dev/null +cp -f ~/.local/share/omarchy/config/hypr/hyprlock.conf ~/.config/hypr/ 2>/dev/null diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf index d24ae2e..97d736e 100644 --- a/config/hypr/hyprlock.conf +++ b/config/hypr/hyprlock.conf @@ -1,7 +1,3 @@ -# ──────────────────────────────────────────────────────────── -# Hyprlock — minimal blur with ringed input -# ──────────────────────────────────────────────────────────── - source = ~/.config/omarchy/current/theme/hyprlock.conf general { @@ -36,7 +32,7 @@ input-field { placeholder_color = $placeholder_color placeholder_text =   Enter Password 󰈷  check_color = $check_color - fail_text = Wrong + fail_text = $PAMFAIL ($ATTEMPTS) rounding = 0 shadow_passes = 0 diff --git a/migrations/1752899588.sh b/migrations/1752899588.sh new file mode 100644 index 0000000..ba778cd --- /dev/null +++ b/migrations/1752899588.sh @@ -0,0 +1,2 @@ +echo "Update .config/hypr/hyprlock.conf to include failed attempt counter" +omarchy-refresh-hyprlock