[HOWTO] Save Screenshots in Ubuntu Automatically when PrintScreen key is pressed

When you press the PrintScreen key in Ubuntu, you will see a gnome-screenshot dialog box with options to save the image or Copy it to clipboard. This function is great unless of course, you mistakenly press the key several times day which is really irritating. How about silently saving the image to some predefined location rather than popping up the dialog?

To achieve this, we will use a command-line screenshot tool called scrot. You must install this via Synaptic Package manager or from the terminal by executing sudo apt-get install scrot. You may need to enable additional repositories if you do not find the program in the list.