Linux Combine mulitple keystrokes into one (RHEL)


Well-Known Member
So I am on RHEL at work, and occasionaly need to process a large number of images at once (Typically 40)

Now, I have automated the powerpoint side of things (transparency, positioning, orientation), but I require the minimum trim (not whitespace around) version of the images.

I get an automated output from my main program

I use Kolourpaint. trim the whitespace, crop the image and save

That is 4 key-combos - Ctrl+A Ctrl+U Ctrl+T Ctrl+S

Is there a way to combine this sequence into a single Ctrl+Alt+Winkey sort of combination?

Alternatively is there a way to send these keystrokes via commandline, i.e.

kolorpaint abc.png "key sequence"