- you are familiar with binary editing tools such as
bless(see ubuntu package for example or github),
- and you know C string format modifiers,
- and you know the difference between
- and you do not mind messing around with binary files installed by your Linux distribution of choice,
then you can modify the file name that is used by
When binary editing
gnome-screenshot, you will find two format strings:
%Y-%m-%d %H-%M-%S followed by a null byte,
Screenshot from %s.%s followed by a null byte.
In the second format string, the first
%s is the date, the second
%s is the file extension.
From here, you can, for example, overwrite
%Y-%m-%d %H-%M-%S with
%F-%H%M%S followed by a null byte and
Screenshot from %s.%s by
shot %s.%s followed by a null byte: screenshots will then be named
"shot 2018-05-05_174857.png" for example.
Adapt to your preferences.
There are two constraints:
- the new date format and the new file name format must not be longer than the original ones,
- your customizations will be destroyed if you install a new version of
gnome-screenshot, for example when updating your system.
- Tested on Ubuntu 16.04 LTS, your mileage may vary.
- This is a hack, not a clean way of modifying the default name generated by
gnome-screenshot: make a backup before proceeding.
- Posted without any warranty of any kind.