Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a good keyboard macro program for Ubuntu Linux? I want to easily be able to "start recording" have it record all keys pressed. Then when I stop recording save it. then I want to be able to call the macro by hitting a special key and selecting the sequence. having to open a text file and program the macro will create too much overhead.

share|improve this question

closed as off-topic by Tog, Kevin Panko, Mokubai, nerdwaller, random May 6 '14 at 3:06

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – Tog, Kevin Panko, Mokubai, nerdwaller, random
If this question can be reworded to fit the rules in the help center, please edit the question.

The program that comes closest to this that I know of is XMacro:

The XMacro package contains two simple, C++ programs (xmacrorec and xmacroplay) for recording and replaying keyboard and mouse events on an X server.

This is available in the Ubuntu repository as the xmacro package.

share|improve this answer
1  
After sudo apt-get install -y xmacro, go to Keyboard > Shortcuts > Custom Shortcuts and create e.g. F9 as timeout 120 bash -c 'notify-send "Recording macro; press ESC to stop" ; xmacrorec2 -k 9 > /tmp/macro ; notify-send "Recording macro finished; use F10 to play it"' and F10 as bash -c 'notify-send "Playing back macro on $DISPLAY" ; xmacroplay "$DISPLAY" < /tmp/macro'. Now you can record with F9, stop with ESC and playback with F10. It stops after 120s (in case you forget it). – Mark Dec 30 '15 at 16:21

autokeys is a good option though it is more heavy weight than i am looking for

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .