I'm trying to make a little script that will allow me to list and clock in on recent tasks from the command line, so that I can put it into an Argos script and have it be basically have it be an org clock GNOME shell extension. I noticed that there's the variable org-clock-history which is a list of markers. And I'm guessing markers are character offsets? So I might be able to translate those markers into headings, and so forth. But there must be an easier way, I'm guessing.
So, is there a way to get a list of recently clocked tasks (i.e., headings) from the org-mode clock? I've discovered that I can run
emacsclient --eval '(elisp here)' to run elisp. Now all I have to do is figure out what to put in there.