This commit is contained in:
Gerben Jan Dijkman 2023-01-08 22:10:59 +01:00
parent a27d2c94ef
commit a0adda32a0
4 changed files with 113 additions and 2 deletions

View File

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" ?>
<node>
<!-- org.sigxcpu.Feedback
@short_description: haptic/audio/visual feedback interface
This D-Bus interface is used to get the current feedback theme
and to give feedback on events.
-->
<interface name="org.sigxcpu.Feedback">
<!--
Profile: The currently used profile.
The currently used feedback profile name. Applications should
usually not change this value.
-->
<property name="Profile" type="s" access="readwrite" />
<!--
TriggerFeedback:
@app_id: The application id usually in "reverse DNS" format
@event: The event name from the Event naming spec
@hints: Additional hints (e.g. to prefer haptic feedback over audio feedback on button press events)
@timeout: When the feedbacks for this event should end latest in seconds. The special values '-1' (just run each feedback once) and '0' (endless loop) are also supported.
@id: Event id for future reference
Give user feedback for an event by triggering feedbacks
defined in the daemon. The method call returns an event id
that can be used later on to e.g. cancel the triggered
feedbacks early.
Depending on the event, theme and profile several forms of
feedback will be triggered such as an audio ring tone and a
haptic motor.
-->
<method name="TriggerFeedback">
<arg direction="in" name="app_id" type="s"/>
<arg direction="in" name="event" type="s"/>
<arg direction="in" name="hints" type="a{sv}"/>
<arg direction="in" name="timeout" type="i"/>
<arg direction="out" name="id" type="u"/>
</method>
<!--
EndFeedback:
@id: The id of the event
End all feedbacks triggered by the event with the given id.
-->
<method name="EndFeedback">
<arg direction="in" name="id" type="u"/>
</method>
<!--
FeedbackEnded:
@id: The id of the event
@reason: The reason why feedback was ended (currently unused).
Emitted when all feedbacks for an event have ended.
-->
<signal name="FeedbackEnded">
<arg name="id" type="u"/>
<arg name="reason" type="u"/>
</signal>
</interface>
</node>

View File

@ -0,0 +1,43 @@
<schemalist>
<schema id="org.sigxcpu.feedbackd"
path="/org/sigxcpu/feedbackd/">
<key name="profile" type="s">
<choices>
<choice value='full'/>
<choice value='quiet'/>
<choice value='silent'/>
</choices>
<default>'full'</default>
<summary>Feedack profile to use</summary>
<description>
The feedback profile determines the audio and haptical feedback
level given on events to the user.
</description>
</key>
<key name="theme" type="s">
<default>'default'</default>
<summary>The feedback theme to use</summary>
<description>
The feedback theme determines which feedbacks are triggered when
feedbackd receives an event.
</description>
</key>
</schema>
<schema id="org.sigxcpu.feedbackd.application">
<key name="profile" type="s">
<choices>
<choice value='full'/>
<choice value='quiet'/>
<choice value='silent'/>
</choices>
<default>'full'</default>
<summary>Feedack profile to use</summary>
<description>
The feedback profile determines the audio and haptical feedback
level given on events to the user.
</description>
</key>
</schema>
</schemalist>

View File

@ -6,7 +6,7 @@ PYTHON_COMPAT=( python3_{8..11} )
inherit gnome.org gnome2-utils meson optfeature python-single-r1 virtualx xdg
COMMIT="4ef0db259a1815d00656c3adab89df14f272067e"
COMMIT="b53a8823d8750ec7ebec7f7d87ea57f53e489ac9"
SRC_URI="https://gitlab.gnome.org/verdre/gnome-shell/-/archive/${COMMIT}/gnome-shell-${COMMIT}.tar.gz -> ${P}.tar.gz"
S=${WORKDIR}/gnome-shell-${COMMIT}
@ -31,7 +31,7 @@ DEPEND="
>=dev-libs/gobject-introspection-1.49.1:=
>=dev-libs/gjs-1.73.1[cairo]
>=x11-libs/gtk+-3.15.0:3[introspection]
>=x11-wm/mutter-43.0:0/11[introspection,test?]
>=x11-wm/mutter-43.0:0/11[introspection,mobile,test?]
>=sys-auth/polkit-0.120_p20220509[introspection]
>=gnome-base/gsettings-desktop-schemas-42_beta[introspection]
>=x11-libs/startup-notification-0.11

1
x11-wm/mutter/Manifest Normal file
View File

@ -0,0 +1 @@
DIST mutter-43.1.tar.gz 4600902 BLAKE2B 28d21f106bbb0a12753b32756438500664eca2771fff50c27c42f17f05876e05eae180484ff28db43bdc55b051f93085a87e6ced08b8eb85629245e39ead7b7d SHA512 a5c79b268e1945cd117c0c4e4105d98e5a322157d7c9baba27d87b74498229cc5c4c9e8ee94ec5ec4c64c97b6771de5f25127188038ed557818c44cff7bd2056