You are not logged in.

#1 2013-05-16 13:25:02

throbscottle
Member
Registered: 2011-11-05
Posts: 55

Map a function key to ctrl-z

I'm looking for a way to get a function key (such as F12) to produce a ctrl-z combination. Can't find a way to do this, xmodmap wont map to combinations, xkb configuration seems waaayyy complicated. Is there something simpler?

Offline

#2 2013-05-16 14:05:13

EvanPurkhiser
Member
From: San Francisco
Registered: 2010-08-17
Posts: 225
Website

Re: Map a function key to ctrl-z

You could try using xbindkeys with xdotool. For example:

"xdotool keyup F12 key Control+Z"
  F12

Offline

#3 2013-05-16 18:26:37

throbscottle
Member
Registered: 2011-11-05
Posts: 55

Re: Map a function key to ctrl-z

Thanks for that - I read the man pages now and modified it to
"xdtool key ctrl+z"
F12

Works a treat. The reason I wanted to do this is to map one of the macro keys on my Aiptek tablet to undo so I don't have to keep reaching for the keyboard. So now I can set up other common shortcuts the same way. Lets hope it works with wine now big_smile

Bit thanks big_smile

Offline

Board footer

Powered by FluxBB