mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2025-05-13 05:30:37 +01:00
hyprlock: add onclick (#1031)
Some checks are pending
Update Website / notify-parent-repo (push) Waiting to run
Some checks are pending
Update Website / notify-parent-repo (push) Waiting to run
This commit is contained in:
parent
38d9f5f16b
commit
aa5d6457a8
1 changed files with 12 additions and 0 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue