From 46790e9efbb67a38cbcd8a18d45d57d34a8c8c0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 28 May 2025 12:06:54 +0200 Subject: [PATCH 1/3] doc: Sort events alphabetically MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While we have "button-{pressed,released}" events there's often the desire to control sound for key presses of e.g. on screen keyboards too. Add a separate event for that. Signed-off-by: Guido Günther --- doc/Event-naming-spec-0.0.0.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/Event-naming-spec-0.0.0.md b/doc/Event-naming-spec-0.0.0.md index 25af615..cf2c435 100644 --- a/doc/Event-naming-spec-0.0.0.md +++ b/doc/Event-naming-spec-0.0.0.md @@ -61,20 +61,20 @@ These events are meant to be used by applications. #### Notifications +- *alarm-clock-elapsed*: A user configured alarm elapsed. - *camera-focus*: The event used when the camera got focus. - *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-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-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-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-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). #### Actions @@ -109,16 +109,16 @@ 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-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. -- *message-new-cellbroadcast*: The event used when a new cell broadcast message is received. -- *power-plug*: The power cable has been plugged in. -- *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-new-cellbroadcast*: The event used when a new cell broadcast message is received. - *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 the notification server. - *notification-new-generic*: The event used when a generic notification is shown to the user. This event is usually only used by the notification server. +- *power-plug*: The power cable has been plugged in. +- *power-unplug*: The power cable has been unplugged. #### Input Events From ed523e8755dcb4ab2bf9696aa2fd4590d9703cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Thu, 1 Dec 2022 12:11:47 +0100 Subject: [PATCH 2/3] data: Add key press/release events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While we have "button-{pressed,released}" events there's often the desire to control sound for key presses of e.g. on screen keyboards too. Add separate events for that. This allows us to e.g. add a particular sound for OSK key presses and OSKs can send this with an `important` hint so they're also usable in silent mode. Closes: https://gitlab.freedesktop.org/agx/feedbackd/-/issues/85 Signed-off-by: Guido Günther --- data/default.json | 21 +++++++++++++++++++++ doc/Event-naming-spec-0.0.0.md | 2 ++ 2 files changed, 23 insertions(+) diff --git a/data/default.json b/data/default.json index f1a4c40..ffc51e1 100644 --- a/data/default.json +++ b/data/default.json @@ -29,6 +29,16 @@ "type" : "Sound", "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", "type" : "Sound", @@ -116,6 +126,17 @@ "type" : "VibraRumble", "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", "type" : "VibraPattern", diff --git a/doc/Event-naming-spec-0.0.0.md b/doc/Event-naming-spec-0.0.0.md index cf2c435..3f68c27 100644 --- a/doc/Event-naming-spec-0.0.0.md +++ b/doc/Event-naming-spec-0.0.0.md @@ -109,6 +109,8 @@ 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-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. +- *key-pressed*: The event used when a key on e.g. an on screen keyboard is pressed. +- *key-released*: The event used when a key on e.g. an on screen keyboard is released. - *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 From 4ba029df17bacc56df563dce6275536f4597895a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Wed, 28 May 2025 12:14:23 +0200 Subject: [PATCH 3/3] schema: Allow Stevia OSK to override the globla feedback level MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guido Günther --- data/org.sigxcpu.feedbackd.gschema.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/org.sigxcpu.feedbackd.gschema.xml b/data/org.sigxcpu.feedbackd.gschema.xml index 6f6cf16..730da67 100644 --- a/data/org.sigxcpu.feedbackd.gschema.xml +++ b/data/org.sigxcpu.feedbackd.gschema.xml @@ -33,7 +33,8 @@ - ['org.sigxcpu.FbdAlertSlider', + ['mobi.phosh.Stevia', + 'org.sigxcpu.FbdAlertSlider', 'org.gnome.clocks'] List of apps that can override the feedback level