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 trying to assign some of those extra keys that come with the keyboard to something useful. I know how to change their default behavior, and how to assign them to a shell script via the System -> Preferences -> Keyboard Shortcut menu, but am not sure how what to enter in the 'command' part of a custom keyboard shortcut in order to get the normal "copy" behavior you get when using Ctrl+C.

Anyone know what I should enter in that 'command' text box to get the normal 'copy' behavior in gnome?

share|improve this question
up vote 0 down vote accepted

I'm guessing you're using something like KeyTouch? It looks like you want combine it with xmacro. I don't have it installed on a handy system, but I think you want a script something like

sleep .07
echo KeyStrPress Control_R KeyStrPress c KeyStrRelease c KeyStrRelease Control_R | xmacroplay "$DISPLAY"

and call that script in your 'command' text box.

share|improve this answer

You must log in to answer this question.

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