I am not holding a camera, I do not need to hear a shutter sound to know I pressed the Print Screen key.
Other suggestions on the site encourage people to disable event sounds, but I use these. So it something I can hack out of the sound theme?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
Either disable system sound effects or, I am assuming you want to disable only the screen shot sound, move or rename
sudo mv /usr/share/sounds/freedesktop/stereo/camera-shutter.oga /usr/share/sounds/freedesktop/stereo/camera-shutter-disabled.oga
Although I've not tested it, but it seems that
/usr/share/sounds/freedesktop/stereo/screen-capture.oga is the sound you're talking about.
Try renaming or moving it.
Also, in the properties of
screen-capture.oga it is said it has as target the file
camera-shutter.oga. so, it is a link to the later. i guess touching any of these would eliminate the sound
Another proposed solution is by doing the following:
sudo mv /usr/share/sounds/freedesktop/stereo/camera-shutter.oga /usr/share/sounds/freedesktop/stereo/camera-shutter-backup.oga
sudo ffmpeg -f lavfi -i anullsrc -t 0.5 -c:a libvorbis /usr/share/sounds/freedesktop/stereo/camera-shutter.oga
ffmpeg comes with Ubuntu on a fresh installation, and the plugin anullsrc generates silence, outputting it as an Ogg Vorbis file format using the libvorbis library. It needs to be named as an OGA file, due to symbolic links associated with it. It needs to be 0.5 seconds long, otherwise, it may take a while for the screenshot feature to finish its job.
Tested on a clean installation of Ubuntu 16.04.6 LTS.