ArchWiki / Hyprlock
ArchWiki / Hyprlock
Hyprlock is Hyprland's screen locker. It is highly customizable.
Installation
Configuration
Configuration is done through the hyprlock.conf file in ~/.config/hypr.
Hyprlock does not generate a configuration file on installation, and will not run without one.
Widgets
Hyprlock works on a widget-based system. Widgets can be created with the following format:
widget {
property = value
...
}~/.config/hypr/hyprlock.confAs many of these can be put in the hyprlock.conf file as desired. For example:
label {
...
}
label {
...
}
input-field {
...
}~/.config/hypr/hyprlock.confExamples
The background of Hyprlock:
background {
monitor = # monitor-agnostic
path = ~/Pictures/mountain.jpg
blur_passes = 1
blur_size = 7
}~/.config/hypr/hyprlock.confAn input field for the password:
input-field {
monitor =
size = 20%, 5%
font_family = Noto Sans
dots_size = 0.08
}~/.config/hypr/hyprlock.confA label that displays the time:
label {
monitor =
text = $TIME
font_size = 100
position = 0, -80
}~/.config/hypr/hyprlock.confThe $TIME that comes after text can be substituted for any other text, $USER, $FAIL, and $TIME12, among others.