Xubuntu is based on the XFCE desktop. The XFCE desktop has a provision for wonderful sound effects also known as sound theme for events such as desktop login, maximise, minimise, but these do not work by default. The sound theme is there by default and it can be enabled as shown, but here we will set up and enable a different sound theme. These steps would apply to any distribution with the XFCE desktop.
Here, we will enable sound theme using the Smooth sound theme available at https://www.pling.com/p/1187979/.
To enable the sound theme for desktop events, open a terminal window and do the following:
Enable sounds in xsettings with:
$ xfconf-query -c xsettings -p /Net/EnableEventSounds -s true <enter>
$ xfconf-query -c xsettings -p /Net/SoundThemeName -s "Smooth" <enter>
$ xfconf-query -c xsettings -p /Net/EnableInputFeedbackSounds -s true <enter>
Install the following packages for XFCE to play system / event sounds:
$ sudo apt-get install gnome-session-canberra sox <enter
>
Modify ~/.profile to enable the canberra-gtk-module:
$ vi ~/.profile <enter>
Add the following 2 lines at end of the file
GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
export GTK_MODULES
:wq
Download Smooth sound theme from http://my.opendesktop.org/s/QrcjmXiTpqQsciE/download
Extract it to your local folder as below:
$ cd ~/.local/share <enter>
$ mkdir sounds <enter>
Copy over the Smooth folder after you have extracted it to this folder. In my case, I did:$ cp -R ~/Downloads/Smooth . <enter>
To autostart the login sound, go to Settings Manager -> Session -> Startup -> Application Autostart
with:Name = Login Sound and Description = Login Sound
Command = canberra-gtk-play -f ~/.local/share/sounds/Smooth/stereo/desktop-login.oga
Now logout and login again to enjoy the sound effects of the Smooth sound theme.