Last Updated: February 25, 2016
·
578
· eldano

pgAdmin3 add sound

pgAdmin3 is a pretty ugly GUI for postgresql, but it has a pretty cool splash screen with a big badass elephant.
Wouldn't it enhance the user experience if it played an elephant trumpet when the program is launched?

Here's how to do it:

  • download a good short elephant trumpet from: http://soundjax.com/elephant_sounds-1.html and copy it to your user folder (/home/your_user/sounds/)

  • create an empty sh file in your user folder

    • cd /home/your_user/
    • touch pgadmin3.sh
  • open the sh file and add this code

aplay /home/your_user/sounds/elephant.wav & pgadmin3

Now you can execute your script with sh pgadmin3.sh and it will launch the program while playing the sound!

If you want this script to be executed from the launcher you have to first lock the pgAdmin3 icon to the launcher and then:

  • go to /usr/share/applications
  • edit the file pgadmin3.desktop
  • change the line starting with Exec for

    Exec=sh /home/your_user/scripts/pgadmin3.sh



In my opinion, this sound should be a default for pgAdmin3.

Enjoy!