I just found xmacro (on Sourceforge.net) to be a real *KEEPER* in my
box of tools on Linux now that I have figured it out. The docs kind of
aren't there, so the technique with it is:
$ vi /etc/apt/sources.list
{Edit your apt sources so that you can use a source that has xmacro
packaged for your particular distro. For instance, on Ubuntu, I have to
uncomment the "universe" setting in order to see the xmacro Debian
package. , you can always download this from SourceForge.net.}
$ apt-get update
$ apt-get install xmacro
$ xmacrorec2 my.macro
{Press [Scroll Lock] key. Type your keystrokes and do your optional
mouse events that you want to record. Press [Scroll Lock] key again to
stop the recording.}
$ vi my.macro
{Edit this file and remove out any lines that you don't want or need.}
$ cat my.macro | xmacroplay ":0.0"
By doing this, for instance, I was able to record CTRL+ALT+d, which was
the Show Desktop feature in GNME. I could then attach this to a
launcher and make a better looking Show Desktop button, which I
describe here:
#post279697