I haven’t been able to get out and about for a while, so I’ve been trying to keep my hand in by my supercharging my Arch distro.
Like all good coders, I’m lazy by nature - I like getting things done with as little effort as possible. So, with that in mind, I’ve been setting up some handy custom desktop actions (you know - the ones that pop up in that neat little menu when you right click on a file or folder).
So far, I’ve added the following: display the full EXIF data of an image in the terminal, convert an image (still or animated) to JPEG XL, edit a file as Root, copy the full path of a file or directory to the clipboard, and calculate the SHA checksum of a file and display it in the terminal.
So… I was wondering… is there anything you’d like to do with a single mouse click straight from the desktop?
Here’s one I’d really like that others might also find useful.
Using darktable, you typically have a raw, a sidecar file (.XMP) and the jpeg you just created. So something like
raw - ABC.CR2
xmp - ABC.CR2.xmp
jpeg - ABC-my-cat-looking-cute.jpg
where ABC and CR2 could be anything
Let’s assume these are all in the same folder.
Now I want to create a copy of the XMP and name it the same as the jpeg for posterity.
So I right click the XMP, click a new choice like “DT Rename”, and hey presto:
It looks for files beginning ABC and for simplicity takes the first one which has an extension of
jpg, jpeg, tif, tiff, … any reasonable list of output files (but jpg is most likely!)
and creates a copy of the XMP with name
ABC-my-cat-looking-cute.xmp