Adding a sound to act as a default tone

I find the topic very interesting, but I can only find very little information on how to install your own sound themes on the current Zorin/Ubuntu versions or how to replace some of the existing sounds with other sounds.
Since I only tried everything with the Zorin 18 live stick, I'm not sure if that's why it didn't work (because maybe a restart would be necessary).
I downloaded a complete sound theme, unzipped it, and saved it to ~/.local/share/sounds. It also contained an index.theme file. Then I entered the name of the theme in dconf-editor.
But something must have been wrong, because after that gnome-tweaks would no longer launch due to a faulty sound theme.
I don't know how to set these sounds to play, e.g., when minimizing/maximizing windows, activating a slider in the settings... There are special sounds for all these actions that I can also call up with

/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login"

but they don't play by default and there is no setting to turn on system sounds.

When I tried to play the sound of a downloaded file it always said file not found or corrupt, although the sound worked when I clicked on the file, e.g.

/usr/bin/canberra-gtk-play --file="/home/USERNAME/Downloads/trash-empty.ogg"

Replacing the original files at /usr/share/sounds/gnome/default/alerts
and
/usr/share/sounds/zorin/stereo
didn't work when I tried it. I thought I could replace an alert sound file with another sound when I name it as the original one, but it didn't play the sound. I'll try it with my virtual machine.

@Aravisian Would it help to use these commands you wrote in this thread? I tried

sudo apt-get install gnome-session-canberra sox

but was not sure what to do then and it is a really old post

I read that you should create a file called sounds.list, which defines which sound files should be played for certain actions. I couldn't find such a file, and I don't know how to create it or how to create symlinks to the sounds.

There are also so many sounds at /usr/share/sounds/freedesktop/stereo,but I found no way to enable them. At gnome-tweaks you can only set default, custom or zorin, but I don't notice any difference even when I put the freedesktop sound theme to ~/.local/share/sounds/__custom.

1 Like