From ac182bf462ea52ef097fdd2f3cf660de3d5d80ea Mon Sep 17 00:00:00 2001 From: VectorKappa Date: Sun, 10 Aug 2025 17:14:52 +0200 Subject: [PATCH] Switch to hyprlock --- .config/hypr/hyprlock.conf | 106 +++++++++++++++++++++++++++++++++++++ .config/jgmenu/append.csv | 2 +- 2 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 .config/hypr/hyprlock.conf diff --git a/.config/hypr/hyprlock.conf b/.config/hypr/hyprlock.conf new file mode 100644 index 0000000..567f8fa --- /dev/null +++ b/.config/hypr/hyprlock.conf @@ -0,0 +1,106 @@ +# sample hyprlock.conf +# for more configuration options, refer https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock +# +# rendered text in all widgets supports pango markup (e.g. or tags) +# ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#general-remarks +# +# shortcuts to clear password buffer: ESC, Ctrl+U, Ctrl+Backspace +# +# you can get started by copying this config to ~/.config/hypr/hyprlock.conf +# + +$font = Lexend Deca + +general { + hide_cursor = false +} + +# uncomment to enable fingerprint authentication +auth { + fingerprint { + enabled = true + ready_message = Scan fingerprint to unlock + present_message = Scanning... + retry_delay = 250 # in milliseconds + } +} + +animations { + enabled = true + bezier = linear, 1, 1, 0, 0 + animation = fadeIn, 1, 5, linear + animation = fadeOut, 1, 5, linear + animation = inputFieldDots, 1, 2, linear +} + +background { + monitor = + path = screenshot + blur_passes = 3 +} + +input-field { + monitor = + size = 20%, 5% + outline_thickness = 3 + inner_color = rgba(0, 0, 0, 0.0) # no fill + + outer_color = rgba(ee99a0ff) + check_color = rgba(8aadf4ff) + fail_color = rgba(ed8796ff) + + font_color = rgba(cad3f5ff) + fade_on_empty = false + rounding = 15 + + font_family = $font + placeholder_text = Input password... + fail_text = $PAMFAIL + + # uncomment to use a letter instead of a dot to indicate the typed password + # dots_text_format = * + # dots_size = 0.4 + dots_spacing = 0.3 + + # uncomment to use an input indicator that does not show the password length (similar to swaylock's input indicator) + # hide_input = true + + position = 0, -20 + halign = center + valign = center +} + +# TIME +label { + monitor = + text = $TIME # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution + font_size = 90 + font_family = $font + + position = -30, 0 + halign = right + valign = top +} + +# DATE +label { + monitor = + text = cmd[update:60000] date +"%A, %d %B %Y" # update every 60 seconds + font_size = 25 + font_family = $font + + position = -30, -150 + halign = right + valign = top +} + +label { + monitor = + text = $LAYOUT[en,pl] + font_size = 24 + onclick = hyprctl switchxkblayout all next + + position = 250, -20 + halign = center + valign = center +} diff --git a/.config/jgmenu/append.csv b/.config/jgmenu/append.csv index af047ab..39b4af1 100644 --- a/.config/jgmenu/append.csv +++ b/.config/jgmenu/append.csv @@ -1,5 +1,5 @@ ^sep() -Lock,loginctl lock-session,system-lock-screen +Lock,hyprlock,system-lock-screen Exit,^checkout(exit),system-shutdown ^tag(exit) Suspend,systemctl -i suspend,system-log-out