Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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

#!/bin/bash
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.