# 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. <b> or <i> 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
#
#
source = colors.conf

$font = IosevkaTerm NFM ExtraBold

general {
    hide_cursor = false
    no_fade_in = true
    disable_loading_bar = false
    grace = 1

}
# 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 = easeOutQuint, 0, 1, 0.6, 0.99  

#    bezier = linear, 1, 1, 0, 0
    animation = fadeIn, 1, 1, linear
    animation = fadeOut, 1, 5, linear
    animation = inputFieldDots, 1, 1.5, linear
}

background {
    monitor =
    path = screenshot
    blur_passes = 3

}
# for clock


input-field {
    monitor =
    size = 20%, 5%
    outline_thickness = 3
    inner_color = rgba(0, 0, 0, 0.0) # no fill

    outer_color = rgba(eef7fdee)
    check_color =  rgba(ffde00ee)
    fail_color = rgba(ff0100ee)

    font_color = rgba(eef7fdee)
    fade_on_empty = false
    rounding = 10

    font_family = $font
    placeholder_text = input password 
    fail_text = $PAMFAIL

    # uncomment if you wish to display a message during authentication
    #check_text = Authenticating...

    # 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 = bottom
}

# TIME
label {
    monitor =
    text = $TIME # ref. https://wiki.hyprland.org/Hypr-Ecosystem/hyprlock/#variable-substitution
    font_size = 100
    font_family = $font

    position = 0%, -10%
    halign = center
    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 = 0%, -28%
    halign = center
    valign = top
}

label {
    monitor =
    text = $LAYOUT[en,ru]
    font_size = 24
    onclick = niri msg action switch-layout next

    position = 13%, 20%
    halign = center
    valign = bottom
}
