Mapping combo to key and key to combo
dickey at his.com
Thu Aug 27 11:30:01 PDT 2009
On Thu, 27 Aug 2009, Marius Gedminas wrote:
> On Wed, Aug 26, 2009 at 05:14:17PM -0400, Thomas Dickey wrote:
>> On Wed, 26 Aug 2009, Paul Hartman wrote:
>>> On Wed, Aug 26, 2009 at 3:42 PM, Maciej Pilichowski<bluedzins at wp.pl> wrote:
>>>> I would like to assign combo to single key, for example:
>>>> f13 --> shift+home
>>>> and single key to combo, for example:
>>>> win+backspace --> delete
>>>> All links/suggestions/etc how to do it, are welcome. Thank you in
>>>> advance for your help.
>>> I think maybe xmodmap or xbindkeys might be able to do something like that.
>> Perhaps - but the windows-key may be a problem (iirc, unless _it_ happens
>> to be one of the special modifiers such as shift- and control-, it won't
>> work - someone might be able to clarify that).
> Usually the Windows key gets mapped to Super, which, in turn, is usually
man xmodmap says
keycode NUMBER = KEYSYMNAME ...
The list of keysyms is assigned to the indicated keycode (which
may be specified in decimal, hex or octal and can be determined
by running the xev program). Up to eight keysyms may be
attached to a key, however the last four are not used in any
major X server implementation. The first keysym is used when
no modifier key is pressed in conjunction with this key, the
second with Shift, the third when the Mode_switch key is used
with this key and the fourth when both the Mode_switch and
Shift keys are used.
...from which I recall some comment that indicates that while you can
assign "any" key to be one of the extra modifiers, it's only the first
four in this table that can be received as a completely-reassigned keysym.
Otherwise, you're relying on the application to interpret the modifiers
(as xterm does, for example - in addition to the translations resource).
That wouldn't be what OP was requesting.
clarification on this point was what I was suggesting...
Thomas E. Dickey
More information about the xorg