Action¶
Inherited by |
ActionGroup, CommandAction, FunctionAction, InputAction, PlasmaShortcutAction, ReplaceTextAction, SleepAction |
Configuration¶
Properties¶
Unlike triggers, action types are determined by the presence of required properties.
Property |
Type |
Description |
Default |
|---|---|---|---|
conditions |
Must be satisfied in order for the action to be executed. |
||
conflicting |
bool |
Whether this action can activate trigger conflict resolution. |
|
interval |
float or string |
How often should an
|
|
limit |
uint |
How many times the action can be executed during a trigger.
|
|
on |
enum(begin, cancel, end, end_cancel, tick, update) |
At which point of the trigger’s lifecycle the action should be executed. Valid values for a given trigger type are specified on its page in the |
|
threshold |
float (min) or range(float) (min and max) |
Same as Trigger.threshold, but only for this action.
|
Examples¶
Update actions assigned to the actions property of a bidirectional trigger:
- on: update
interval: -10
input:
- keyboard: [ volumeup ]
- on: update
interval: 10
input:
- keyboard: [ volumedown ]