-
Notifications
You must be signed in to change notification settings - Fork 78
Widget: Template
Dan edited this page Feb 13, 2022
·
4 revisions
The widget type yasb.example.ExampleWidget
serves as an example widget for Yasb.
type: "yasb.example.ExampleWidget"
option | type | default | description |
---|---|---|---|
some_field |
some_type | some_value | Some description. |
callbacks |
dict[str] | see callbacks | Left, middle and right-click widget behaviour. |
callback | type | default | description |
---|---|---|---|
on_left |
str | "do_nothing" |
Action triggered when the widget is left-clicked. |
on_middle |
str | "do_nothing" |
Action triggered when the widget is middle-clicked. |
on_right |
str | "do_nothing" |
Action triggered when the widget is right-clicked. |
-
"do_nothing"
- does nothing
example-widget:
type: "yasb.example.ExampleWidget"
options:
...
-
.clock-widget
.label
.label-alt
Something not quite right? Please consider submitting an issue if you think this Wiki needs to be updated.
- Home
- Installation
- Configuration
- Styling
- Widgets:
- FAQ