xmodmap is a tool for manipulating keymaps and pointer button mappings in the Xorg environment.

learn more… | top users | synonyms

9
votes
2answers
2k views

Mapping key combination with xmodmap

I'm trying to achieve the following mapping keycode 135 = <Ctrl-C> Is it possible to achieve this in some way?
4
votes
2answers
1k views

Remapping caps-lock to escape, and menu to compose, on the linux console

When running X I use a .xmodmaprc to remap certain keys thusly: ! Make it so that both Caps Lock and Escape do Escape clear Lock keysym Caps_Lock = Escape ! Remap the menu key as Compose keysym Menu ...
4
votes
1answer
273 views

Swapping <esc> and <caps lock> in a way that persists with external keyboards

I have a file called ~/.speedswapper which contains the following: ! Swap caps lock and escape remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock ...
1
vote
1answer
482 views

Determining keycode assignments for X.org on a PC

At some point around late 2008 to early 2009, some keycode values (apparently, for the keys that weren't on an XT keyboard) on a standard PC keyboard when running X.org under Linux changed. I don't ...
7
votes
1answer
1k views

Relationship of keyboard layout and xmodmap

I'm using Xubuntu. Before login I can choose a keyboard layout. I'm using xmodmap for remmaping some keys. I'm interested in two things: How the state of keyboard mapping changes when I turn the ...
19
votes
4answers
9k views

How to get keycodes for xmodmap?

I'm trying to use xmodmap to remap Alt / Super keys on Dell L100 keyboard, and have trouble getting the keycodes. For instance, using xev doesn't give me keycode for Alt FocusOut event, serial 36, ...
10
votes
1answer
333 views

Get the keycode of a key, from a custom made keyboard

I'm trying to transform a Minitel to a computer with a Raspberry Pi. This is a minitel: So I soldered the matrix of the minitel keyboard to a usb keyboard pcb, like this: Everything is working ...
7
votes
2answers
2k views

Remapping Caps Lock with xmodmap doesn't work

When I program I like to swap these keys: Esc ↔ Tab Ctrl ↔ CapsLock In ~/.xmodmap, I have specified these re-mappings: keycode 66 = Control_L keycode 37 = Caps_Lock keycode 23 = Escape keycode 9 = ...
2
votes
2answers
393 views

Where to apply xmodmap for systemwide usage?

I need to apply a custom xmodmap for all users at the start. Where do I need to put it? I have thought at /etc/rc.local? Does this make sense?
5
votes
1answer
969 views

What is the Mode_switch modifier for?

Playing with xmodmap I encountered a modifier key I hadn't heard of: Mode_switch. It seems to have something to do with inserting special characters. I assigned it to a key but it seems to have no ...
4
votes
3answers
869 views

Set the key for spanish eñe letter

How can I map the spanish eñe letter to a key combination? What application is suitable for this purpose (xmodmap, xbindkeys, ...)? When I press Caps Lock + n, it should type ñ When I press Caps ...
2
votes
1answer
72 views

how to swap ctrl and capslock using xmodmap?

I know this xmodmap script can swap ctrl and capslock: remove Lock = Caps_Lock remove Control = Control_L keysym Caps_Lock = Control_L keysym Control_L = Caps_Lock add Lock = Caps_Lock add Control ...
2
votes
4answers
691 views

Turn NumLock on on startup?

I usually edit in Vim,and when pressing +, I'd rather move my hand to the right part of the keyboard where + resides rather than doing shift + =. But when NumLock is not on, in Vim it just opens a ...
4
votes
2answers
955 views

run xmodmap commands after login

I created a file ~/.Xmodmap with my mapping commands. I thought that it will be automatically launched after login (and restart) but it's not. So I have to always run after login the command $ ...
4
votes
3answers
1k views

how to assign another modifier to Alt key for X11?

Aim: I would like to assign Alt to CapsLock-key, and Meta to Alt-key. But in such way, Alt-key would no longer be recognized as Alt, and CapsLock-key would no longer be recognized as CapsLock. ...
1
vote
1answer
299 views

Remap Caps_Lock to Control in Solaris

I'm having the hardest time trying to understand how xmodmap works. I want to remap the Caps Lock key to Control. In an attempt to emaulate the answers shown here, I created the file .xmodmaprc: ...