hyprlock: add onclick (#1031)
Some checks are pending
Update Website / notify-parent-repo (push) Waiting to run

This commit is contained in:
Maximilian Seidler 2025-05-08 18:27:37 +02:00 committed by GitHub
parent 38d9f5f16b
commit aa5d6457a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,6 +178,15 @@ Some widgets are shadowable, meaning they can have a shadow. For those widgets,
| shadow_color | shadow color | color | rgb(0,0,0) | | shadow_color | shadow color | color | rgb(0,0,0) |
| shadow_boost | boost shadow's opacity | float | 1.2 | | shadow_boost | boost shadow's opacity | float | 1.2 |
### Clickable
Some widgets are clickable. Namely `label`, `image` and `shape`.
You can launch arbitrary commands when clicking on them by configuring the following option within the widget:
| variable | description | type | default |
| -- | -- | -- | -- |
| onclick | command to run when clicked | str | [[Empty]] |
### Background ### Background
Draws a background image or fills with color. Draws a background image or fills with color.
@ -227,6 +236,7 @@ background {
### Image ### Image
✓ Shadowable ✓ Shadowable
✓ Clickable
Draws an image. Draws an image.
@ -268,6 +278,7 @@ image {
### Shape ### Shape
✓ Shadowable ✓ Shadowable
✓ Clickable
Draws a shape. Draws a shape.
@ -388,6 +399,7 @@ input-field {
### Label ### Label
✓ Shadowable ✓ Shadowable
✓ Clickable
Draws a label. Draws a label.