From c048717831a9976d776748b76feee79c814c094f Mon Sep 17 00:00:00 2001 From: Nikolai Papin Date: Thu, 29 Jan 2026 16:42:38 +0300 Subject: [PATCH] refactor: hyprlock (from https://github.com/MrVivekRajan/Hyprlock-Styles) --- hypr/hyprlock.conf | 158 +++++++++++++++++++-------------------------- 1 file changed, 68 insertions(+), 90 deletions(-) diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf index 9271d31..c21ab2b 100644 --- a/hypr/hyprlock.conf +++ b/hypr/hyprlock.conf @@ -1,111 +1,89 @@ -# 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 = Iosevka - -general { - hide_cursor = true -} - -# 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 background { monitor = - path = screenshot - # path = /home/greg/Pictures/Wallpapers/japan_tower_sakura.jpg - blur_passes = 3 + path = /home/greg/Pictures/Wallpapers/waporvape-dark-tvlike-pink.png + blur_passes = 0 + contrast = 0.8916 + brightness = 0.8172 + vibrancy = 0.1696 + vibrancy_darkness = 0.0 } -image { - # TODO: store there images somewhere in the config dir - path = /home/greg/Pictures/Things/niko.jpg - position = 0, 40 - halign = center - valign = center - size = 100, 100 - rounding = -1 - border_color = rgba(9E223800) - shadow_passes = 1 - shadow_size = 3 - shadow_color = rgb(aaaaaa) +# GENERAL +general { + no_fade_in = false + grace = 0 + disable_loading_bar = false } -input-field { +# Time-Hour +label { monitor = - size = 15%, 5% - outline_thickness = 3 - inner_color = rgba(0, 0, 0, 0.5) # no fill - - outer_color = rgba(9E223800) - check_color = rgba(ffff00ff) rgba(E96375ff) 120deg - fail_color = rgba(ff6633ee) rgba(ff0066ee) 40deg - - font_color = rgb(255,255,255) - fade_on_empty = false - rounding = 15 - - font_family = $font - placeholder_text = パスワード - 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, -100 + text = cmd[update:1000] echo "$(date +"%I")" + color = rgba(255, 255, 255, 1) + font_size = 125 + font_family = StretchPro + position = -80, 190 halign = center valign = center } -# TIME +# Time-Minute label { monitor = - text = $TIME # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution - font_size = 90 - font_family = $font - - position = 0, -50 + text = cmd[update:1000] echo "$(date +"%M")" + color = rgba(232, 60, 130, 1) + font_size = 125 + font_family = StretchPro + position = 0, 70 halign = center - valign = top + valign = center } -# DATE +# Day-Month-Date label { monitor = - text = cmd[update:60000] date +"%A, %d %B %Y" # update every 60 seconds - font_size = 25 - font_family = $font - - position = 0, -200 + text = cmd[update:1000] echo -e "$(date +"%d %B, %a.")" + color = rgba(255, 255, 255, 100) + font_size = 22 + font_family = Suisse Int'l Mono + position = 20, -8 halign = center - valign = top + valign = center } +# USER +label { + monitor = + text =  $USER + color = rgba(232, 60, 130, 1) + outline_thickness = 2 + dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + font_size = 22 + font_family = SF Pro Display Bold + position = 0, -220 + halign = center + valign = center +} + +# INPUT FIELD +input-field { + monitor = + size = 300, 60 + outline_thickness = 2 + dots_size = 0.2 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.2 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + outer_color = rgba(0, 0, 0, 0) + inner_color = rgba(255, 255, 255, 0.1) + font_color = rgb(200, 200, 200) + fade_on_empty = false + font_family = SF Pro Display Bold + placeholder_text = パスワード + hide_input = false + position = 0, -290 + halign = center + valign = center +}