[PLUG] Swapping key functions with .Xmodmap
Rich Shepard
rshepard at appl-ecosys.com
Thu Nov 16 22:40:50 UTC 2017
On Fri, 17 Nov 2017, Bryan Linton wrote:
> My .xmodmap is the following:
>
> remove Lock = Caps_Lock
> keysym Caps_Lock = Escape
>
> ! This maps the kanji-conversion keys to <space>
> keycode 129 = space
> keycode 131 = space
> keycode 208 = space
>
> ! Map the yen key to backspace (or backslash/pipe)
> !keycode 133 = BackSpace
> keycode 133 = backslash bar
>
> My first suggestion would be to see if you can simply remap them
> without trying to use the "remove" keyword. If that doesn't work,
> I wonder if using the keycode xev gives you instead of the keysym
> is what xmodmap is expecting.
Bryan,
It has been working for years swapping caps_lock and ctrl.
> In the following line from xev,
>
> state 0x0, keycode 115 (keysym 0xffeb, Super_L), same_screen YES
Here the keycode is 133 with keysym of "Super_L".
> Hopefully that gives an idea of where to start. If not, please
> report back to the list.
Since the existing .Xmodmap has the remove commands (which I see in the
man page) I assume that they're needed for all keys being modified.
Thanks for your input,
Rich
More information about the PLUG
mailing list