This is about changing scrot’s default screenshot format from PNG to JPEG. The main reason for doing so is to save space, though the quality is a bit lost.. Anyways, the solution was found on this Ubuntu thread (Glutanimate’s solution for more detail).
Modifying image format
Making a backup of the original configuration file:
cp ~/.config/openbox/lubuntu-rc.xml ~/.config/openbox/lubuntu-rc.xml.backup
Open an editor and modify the configuration file:
leafpad ~/.config/openbox/lubuntu-rc.xml
Search for the following section:
<!-- Launch scrot when Print is pressed --> <keybind key="Print"> <action name="Execute"> <command>...</command> </action> </keybind>
Replace the stuff between the command tags with the following:
More detailed with the file naming format: http://www.linuxmanpages.com/man3/strftime.3.php
scrot '%Y-%m-%d-%H-%M-%S_$wx$h.jpeg'
Save and close lubuntu-rc.xml
.
Update Openbox:
openbox --reconfigure
Restoring previous settings
Revert settings from previous backup:
cp ~/.config/openbox/lubuntu-rc.xml.backup ~/.config/openbox/lubuntu-rc.xml