91 lines
1.7 KiB
Plaintext
91 lines
1.7 KiB
Plaintext
# https://wiki.hypr.land/Hypr-Ecosystem/hyprlock/
|
|
source = $HOME/.config/hypr/mocha.conf
|
|
|
|
$accent = $mauve
|
|
$accentAlpha = $mauveAlpha
|
|
$font = JetBrainsMono Nerd Font
|
|
|
|
# General
|
|
general {
|
|
disable_loading_bar = false
|
|
hide_cursor = false
|
|
}
|
|
|
|
# Authentication
|
|
auth {
|
|
fingerprint {
|
|
enabled = true
|
|
ready_message = Scan fingerprint to unlock
|
|
present_message = Scanning...
|
|
retry_delay = 250 # in milliseconds
|
|
}
|
|
|
|
}
|
|
|
|
# Background
|
|
background {
|
|
monitor =
|
|
path = ~/.config/backgrounds/shaded.png
|
|
blur_passes = 2
|
|
color = $base
|
|
}
|
|
|
|
# Time
|
|
label {
|
|
monitor =
|
|
text = cmd[update:30000] echo "$(date +"%R")"
|
|
color = $text
|
|
font_size = 90
|
|
font_family = $font
|
|
position = -30, 0
|
|
halign = right
|
|
valign = top
|
|
}
|
|
|
|
# Date
|
|
label {
|
|
monitor =
|
|
text = cmd[update:43200000] echo "$(date + "%A, %d %B %Y")"
|
|
color = $text
|
|
font_size = 25
|
|
font_family = $font
|
|
position = -30, -150
|
|
halign = right
|
|
valign = top
|
|
}
|
|
|
|
# User Avatar
|
|
image {
|
|
monitor =
|
|
path = # TODO: Need to add an image for avatar
|
|
size = 100
|
|
border_color = $accent
|
|
|
|
position = 0, 75
|
|
halign = center
|
|
valign = center
|
|
}
|
|
|
|
# Input Field
|
|
input-field {
|
|
monitor =
|
|
size = 300, 60
|
|
outline_thickness = 4
|
|
dots_size = 0.2
|
|
dots_spacing = 0.2
|
|
dots_center = true
|
|
outer_color = $accent
|
|
inner_color = $surface0
|
|
font_color = $text
|
|
fade_on_empty = false
|
|
placeholder_text = <span foreground="##$textAlpha"><i> Logged in as </i><span foreground="##$accentAlpha">$USER</span></span>
|
|
hide_input = false
|
|
check_color = $accent
|
|
fail_color = $red
|
|
fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i>
|
|
capslock_color = $yellow
|
|
position = 0, -35
|
|
halign = center
|
|
valign = center
|
|
}
|