Merge branch 'key-pressed' into 'main'

Add key press/release events

Closes #85

See merge request agx/feedbackd!90
This commit is contained in:
Guido Günther
2025-07-16 19:54:36 +00:00
3 changed files with 34 additions and 10 deletions
+21
View File
@@ -29,6 +29,16 @@
"type" : "Sound", "type" : "Sound",
"effect" : "camera-shutter" "effect" : "camera-shutter"
}, },
{
"event-name" : "key-pressed",
"type" : "Sound",
"effect" : "key-pressed"
},
{
"event-name" : "key-released",
"type" : "Sound",
"effect" : "key-released"
},
{ {
"event-name" : "message-new-cellbroadcast", "event-name" : "message-new-cellbroadcast",
"type" : "Sound", "type" : "Sound",
@@ -116,6 +126,17 @@
"type" : "VibraRumble", "type" : "VibraRumble",
"duration" : 12 "duration" : 12
}, },
{
"event-name" : "key-pressed",
"type" : "VibraPattern",
"magnitudes" : [ 0.2 ],
"durations" : [ 7 ]
},
{
"event-name" : "key-released",
"type" : "VibraRumble",
"duration" : 12
},
{ {
"event-name" : "message-new-cellbroadcast", "event-name" : "message-new-cellbroadcast",
"type" : "VibraPattern", "type" : "VibraPattern",
+2 -1
View File
@@ -33,7 +33,8 @@
</key> </key>
<key name="allow-important" type="as"> <key name="allow-important" type="as">
<default>['org.sigxcpu.FbdAlertSlider', <default>['mobi.phosh.Stevia',
'org.sigxcpu.FbdAlertSlider',
'org.gnome.clocks']</default> 'org.gnome.clocks']</default>
<summary>List of apps that can override the feedback level</summary> <summary>List of apps that can override the feedback level</summary>
<description> <description>
+11 -9
View File
@@ -61,20 +61,20 @@ These events are meant to be used by applications.
#### Notifications #### Notifications
- *alarm-clock-elapsed*: A user configured alarm elapsed.
- *camera-focus*: The event used when the camera got focus. - *camera-focus*: The event used when the camera got focus.
- *camera-shutter*: The event used when a photo was taken. - *camera-shutter*: The event used when a photo was taken.
- *message-new-instant*: The event used when a new IM is received.
- *message-new-sms*: The event used when a new sms is received.
- *message-new-email*: The event used when a new email is received.
- *message-missed-email*: The event used when an email was received but not seen by the user. - *message-missed-email*: The event used when an email was received but not seen by the user.
- *message-missed-instant*: The event used when a instant message was received but not seen by the user. - *message-missed-instant*: The event used when a instant message was received but not seen by the user.
- *message-missed-sms*: The event used when a sms message was received but not seen by the user. - *message-missed-sms*: The event used when a sms message was received but not seen by the user.
- *message-new-email*: The event used when a new email is received.
- *message-new-instant*: The event used when a new IM is received.
- *message-new-sms*: The event used when a new sms is received.
- *phone-failure*: The event used when a phone/voip call is terminated because of a failure.
- *phone-hangup*: The event used when a phone/voip call is hung up.
- *phone-incoming-call*: The event used when a phone/voip call is coming in. - *phone-incoming-call*: The event used when a phone/voip call is coming in.
- *phone-missed-call*: The event used when a phone/voip call is was incoming but not answered. - *phone-missed-call*: The event used when a phone/voip call is was incoming but not answered.
- *phone-outgoing-busy*: The event used when for outgoing phone/voip call when the responder is busy/not available. - *phone-outgoing-busy*: The event used when for outgoing phone/voip call when the responder is busy/not available.
- *phone-hangup*: The event used when a phone/voip call is hung up.
- *phone-failure*: The event used when a phone/voip call is terminated because of a failure.
- *alarm-clock-elapsed*: A user configured alarm elapsed.
- *timeout-completed*: A user configured timeout completed (e.g. a stop watch). - *timeout-completed*: A user configured timeout completed (e.g. a stop watch).
#### Actions #### Actions
@@ -109,16 +109,18 @@ These events are meant to be used by system components.
- *battery-caution*: The event used when the battery is nearing exhaustion (below 40%, for example). - *battery-caution*: The event used when the battery is nearing exhaustion (below 40%, for example).
- *battery-full*: The event used when the battery is fully loaded up. - *battery-full*: The event used when the battery is fully loaded up.
- *device-added*: The event used when a device has become available to the desktop, i.e. due to USB plugging. - *device-added*: The event used when a device has become available to the desktop, i.e. due to USB plugging.
- *message-new-cellbroadcast*: The event used when a new cell broadcast message is received. - *key-pressed*: The event used when a key on e.g. an on screen keyboard is pressed.
- *power-plug*: The power cable has been plugged in. - *key-released*: The event used when a key on e.g. an on screen keyboard is released.
- *power-unplug*: The power cable has been unplugged.
- *message-missed-notification*: The event used when a notification was shown but not seen by the user. (*deprecated*) - *message-missed-notification*: The event used when a notification was shown but not seen by the user. (*deprecated*)
- *message-new-cellbroadcast*: The event used when a new cell broadcast message is received.
- *notification-missed-generic*: The event used when a generic notification was - *notification-missed-generic*: The event used when a generic notification was
shown but not seen by the user. This event is usually only used by shown but not seen by the user. This event is usually only used by
the notification server. the notification server.
- *notification-new-generic*: The event used when a generic notification - *notification-new-generic*: The event used when a generic notification
is shown to the user. This event is usually only used by the is shown to the user. This event is usually only used by the
notification server. notification server.
- *power-plug*: The power cable has been plugged in.
- *power-unplug*: The power cable has been unplugged.
#### Input Events #### Input Events