https://bugs.kde.org/show_bug.cgi?id=482045

Alex Parker <someanonymousema...@mail.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |someanonymousema...@mail.ru

--- Comment #14 from Alex Parker <someanonymousema...@mail.ru> ---
Custom sounds doesn't works when choose from files.

But you can always customize preinstalled sound theme.
Do it as described in freedesktop specs about Sound Themes.

Example:
Your base theme now is Ocean. You want to change some sounds for some
applications.
0. Okey, first touch ~/.local/share/sounds/__custom/index.theme (two
underscores in directory name is mandatory)

1. Add something like this to this __custom/index.theme
[Sound Theme]
Name=Custom
Inherits=ocean
Directories=.
Example=theme-demo

2. Now you can see new theme in Settings — Look & Feel — System Sounds. It
named Custom and says it inherits from Ocean theme. When you try preview, this
Custom theme must sounds like Ocean. Good start.

3. Now start to add your sounds in .oga/wav format to directory __custom. Right
in directory.
I recommend use naming system from parent theme. Look at it to get filenames
for common sounds, i.e. message-new-instant.oga for new message sound, and etc.
What name for file you use - that name without extension you must use later in
App Notifications settings.

4. But this is not all. You can create your own aliases. For example, store in
__custom dir new file this-is-my-rifle.oga (just for example)
Now go to App Notifications settings and enable (for any event you want) "Play
sound" checkbox, then copypaste in next text field this-is-my-rifle string.
Then click preview button near text field and you must hear
this-is-my-rifle.oga

In such manner you can add any sounds to your custom theme and set them up to
any application's events.

And one detail in the end. By specs only oga and wav files are accepted. I try
mp3 and ogg, it doesn't works.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to