[Approved] Plasma 6 Proposal: Sound theme support
With the discussion of the new Blue Ocean theme there came an idea to create a new KCM for sounds theme. The most obvious idea is to use XDG Sound Theme spec which currently KDE software lacks.
As far as I understand all KF5 apps rely on KNotifications for event producing and configuration. The sound file is defined in the corresponding notifyrc file and being played by KNotifications via libcanberra or phonon by a file URL.
XDG specification defines names of sounds and an algorithm of getting a particular file name using the sound's name and a selected theme name.
My idea is to extend notifyrc files with the support of system sound name field and a new SystemSound
event action which will lookup and play the sound by it's name. The event configuration window will allow users to select if they want to use a sound file or a sound name. kdeglobals
will get a new field for the sound theme
This mechanism will allow us to use GNOME sounds themes (such as Ubuntu's Yaru), sync sounds with GTK and create a KCM for the sound sets management. This also won't change anything for apps, only the sound name could be added declaratively to the existing event configuration.
I really hope I got the whole existing architecture right and my proposal makes any sense. I'd be glad to hear any ideas, corrections and improvements.
Edit (by @iasensio): If you allow me, I'd like to use this issue to track the on-going progress and the required tasks to achieve the proposal.
Sound Theme Support
-
Support the sound spec in KNotifications ( frameworks/knotifications!105 (merged)) -
Make the Oxygen theme compatible with the sound name spec ( oxygen-sounds!6 (merged)) -
Port the plasma sound references to compliant sound names (https://invent.kde.org/raploz/blue-ocean-sound-theme/-/issues/6) -
Port the applications' sound reference to compliant sound names (only on kf6 branches) (https://invent.kde.org/raploz/blue-ocean-sound-theme/-/issues/6) -
Add a new Sound Theme KCM ( !3096 (merged))
Ocean Sound Theme
(General sub-task: #40 (closed))
-
kdereview (https://invent.kde.org/raploz/blue-ocean-sound-theme/-/issues/7) -
Move the repository to the general Plasma groups -
Change the default theme from oxygen to ocean ( frameworks/knotifications!127 (merged) and !3197 (merged) ) -
Include repo into the plasma release (@jriddell) -
Add to the recommended packages for Plasma (https://community.kde.org/Distributions/Packaging_Recommendations) [oygen-sounds still needed for compatibility with KF5 apps] -
Notify distributions (distributions@kde.org)
Get New Stuff
-
Add the System Sounds category (316) to the OCS API for KNewstuff -
Show the "System Sounds" page in the store which it is currently hidden (resources are shared with the Gnome store as they are valid for both desktops), -
Add KNewStuff support to the KCM
Further Integration
-
Add Sound Theme to Global Themes -
Synchronize the gtk setting in kde-gtk-config ( kde-gtk-config!87 (merged)) -
Mention Plasma at https://freedesktop.org/wiki/Specifications/sound-theme-spec/ -
Add a new component (kcm_soundtheme) to systems settings in bugzilla