2024-02-19 17:52:58 +01:00
|
|
|
hyprlock is a simple, yet fast, multi-threaded and GPU-accelerated screen
|
|
|
|
lock for hyprland.
|
|
|
|
|
2024-02-19 18:09:40 +01:00
|
|
|
{{< toc >}}
|
2024-02-19 17:52:58 +01:00
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
### General
|
|
|
|
|
|
|
|
Variables in the `general` category:
|
|
|
|
| variable | description | type | default |
|
|
|
|
| -- | -- | -- | -- |
|
|
|
|
| disable_loading_bar | disables the loading bar on the bottom of the screen while hyprlock is booting up. | bool | false |
|
|
|
|
|
|
|
|
## Widgets
|
|
|
|
|
|
|
|
The entire configuration of how hyprlock looks is done via widgets.
|
|
|
|
|
|
|
|
```ini
|
|
|
|
widget_name {
|
|
|
|
monitor =
|
|
|
|
# further options
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
`monitor` can be left empty for "all monitors"
|
|
|
|
|
|
|
|
## Widget List
|
|
|
|
|
|
|
|
### Background
|
|
|
|
|
2024-02-19 21:52:04 +01:00
|
|
|
Draws a background image or fills with color.
|
|
|
|
|
|
|
|
If `path` is empty or missing, will use `color`. Otherwise, the image will be used.
|
2024-02-19 17:52:58 +01:00
|
|
|
|
|
|
|
```ini
|
|
|
|
background {
|
|
|
|
monitor =
|
|
|
|
path = /home/me/someImage.png # only png supported for now
|
2024-02-19 21:52:04 +01:00
|
|
|
color = rgba(25, 20, 20, 1.0)
|
2024-02-19 17:52:58 +01:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Input Field
|
|
|
|
|
|
|
|
Draws a password input field.
|
|
|
|
|
|
|
|
```ini
|
|
|
|
input-field {
|
|
|
|
monitor =
|
|
|
|
size = 200, 50
|
|
|
|
outline_thickness = 3
|
|
|
|
outer_color = rgb(151515)
|
|
|
|
inner_color = rgb(200, 200, 200)
|
|
|
|
fade_on_empty = true
|
2024-02-19 23:47:22 +01:00
|
|
|
|
|
|
|
position = 0, -20 # position is added to the halign and valign props. For absolute, use "none" in either.
|
|
|
|
halign = center # left, center, right, none
|
|
|
|
valign = center # top, center, bottom, none
|
2024-02-19 17:52:58 +01:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Label
|
|
|
|
|
|
|
|
Draws a label.
|
|
|
|
|
2024-02-19 18:43:08 +01:00
|
|
|
Label text supports [pango markup](https://docs.gtk.org/Pango/pango_markup.html).
|
|
|
|
|
2024-02-19 17:52:58 +01:00
|
|
|
```ini
|
|
|
|
label {
|
|
|
|
monitor =
|
|
|
|
text = Hi there, $USER # Supported variables: $USER
|
|
|
|
color = rgba(200, 200, 200, 1.0)
|
|
|
|
font_size = 25
|
|
|
|
font_family = Noto Sans
|
|
|
|
|
2024-02-19 23:47:22 +01:00
|
|
|
position = 0, 80 # position is added to the halign and valign props. For absolute, use "none" in either.
|
2024-02-19 17:52:58 +01:00
|
|
|
halign = center # left, center, right, none
|
|
|
|
valign = center # top, center, bottom, none
|
|
|
|
}
|
|
|
|
```
|