I want to assign a shortcut key to the "Recent documents" Cinnamon applet, but I can't quite figure what the command for the applet would be.
I want to assign a shortcut key to the "Recent documents" Cinnamon applet, but I can't quite figure what the command for the applet would be.
I had the same question, and kynan has/anticipated an answer - if a bit brief:
You have to change the applet you want access by shortcut such that it reacts to said shortcut. At least this is what I did.
My aim was to have the "Windows Quick List" accessible by a short cut, so took the "Window Quick List with close button" as template.
In the _init of the applet.js I added the following lines:
And the the two handlers are needed of course:
Finally, in order to have the chance to define the hot key customizable I added the following lines to settings.json (also to be anticipated by the above on_keybinding_changed):
(Please take care to copy the comma too, if you forget it, you'll run into trouble)
For me this worked (so far, without major hiccups), but I'm neither javascript in json savvy, and it was a lot of copy&paste together with try&error.
So, probably this is only a starting point and not yet the ultimate answer.
Short answer: I don't know of a way.
Cinnamon applets aren't binary applications or scripts, but more similar to plugins implemented in javascript with some JSON metadata. Have a look at the system wide installed applets in
/usr/share/cinnamon/applets/
for how they look like.