08-31-2020, 08:09 AM
You can do this by creating a custom sound profile and replacing the regular system sounds (for ringtones, alarms, or whatever you'd like) with any recording of your choice (I did it recently for the alarms in Clocks, so I could wake to a song, for instance, instead of the horrible beep-bee-beep noise).
First you'll want to copy the regular sound profile to your .local folder (to keep the default one as a backup, in case you mess something up):
Then navigate to this new local directory you made, and you'll see it contains a directory called stereo, and a file called index.theme. Open index.theme with a text editor and change the name to 'my-custom-profile'.
Navigate to the stereo directory and you'll see all of the system sounds, in the .oga format. You can replace any of them with sound files of your choosing. Convert your sound file to the .oga or .ogg format, change the name to whichever system sound you want to replace, then copy it into that directory to overwrite the default file for that system sound.
Finally, change your system sound profile to your custom profile. You can do this by using dconf-editor, navigating to /org/gnome/desktop/sound and changing the theme-name to 'my-custom-profile'.
First you'll want to copy the regular sound profile to your .local folder (to keep the default one as a backup, in case you mess something up):
Code:
cp -rv /usr/share/sounds/freedesktop ~/.local/share/sounds/my-custom-profile
Navigate to the stereo directory and you'll see all of the system sounds, in the .oga format. You can replace any of them with sound files of your choosing. Convert your sound file to the .oga or .ogg format, change the name to whichever system sound you want to replace, then copy it into that directory to overwrite the default file for that system sound.
Finally, change your system sound profile to your custom profile. You can do this by using dconf-editor, navigating to /org/gnome/desktop/sound and changing the theme-name to 'my-custom-profile'.