This ensures we properly duck any "multimedia" streams when playing
event sounds. We also introduce an alert group for e.g. cell broadcasts.
For testing copy to
~/.config/wireplumber/wireplumber.conf.d/media-role-nodes.conf
and
systemctl --user restart wireplumber
Signed-off-by: Guido Günther <agx@sigxcpu.org>
As per DBus spec the `important` hint is meant to override
the global feedback level not any per app level the user
might have configured as otherwise there's no way to override
this.
Closes: https://gitlab.freedesktop.org/agx/feedbackd/-/issues/93
Signed-off-by: Guido Günther <agx@sigxcpu.org>
OSK use the common OSK app-id so allow that too.
Fixes: 4ba029d ("schema: Allow Stevia OSK to override the globla feedback level")
Signed-off-by: Guido Günther <agx@sigxcpu.org>
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 <agx@sigxcpu.org>
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 <agx@sigxcpu.org>
The Nokia N900 and Motorola Droid 4 use obsolete naming for LEDs, as indicated
in include/dt-bindings/leds/common.h in the Linux kernel. Since the obsolete
naming is still in wide use, support them in feedbackd until it is eventually
removed in the kernel.
Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
As noted in include/dt-bindings/leds/common.h in the Linux kernel, the Nokia
N900 has leds that use legacy naming. Until this naming scheme is removed from
the kernel, support it through the use of an additional FEEDBACKD_LED_COLOR
udev property, which must be set to the color corresponding to the LED.
Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
The only non generic thing is that we pick up the sound
scheme from GNOME when available but we'd happily extend
that to other DEs.
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Update the rule for the "platform-vibrator" entry to be like all the other rules, matching by
ATTRS{name} instead of ENV{ID_PATH}. Since it was matching for both gpio-vibrator and pwm-vibrator,
add entries for both.
Tested on Fairphone 2 which uses the gpio-vibrator driver.
Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
Originally raised in cellbroadcast, but applies here as well
(because cbd yoinked large parts of meson.build!)
Signed-off-by: Evangelos Ribeiro Tzaras <devrtz@fortysixandtwo.eu>