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

learn more… | top users | synonyms

1
vote
1answer
28 views

How do I enable Shift Lock? (Sticky shift key)

I want to map one of my keys the shift lock key. In my understanding, the shift lock key is a kind of a 'sticky' shift key: it remains pressed, shifting all keys of the layout until pressed again. It ...
1
vote
1answer
13 views

Remapping both Caps Lock and Windows keys to be separate modifiers

I want to use both my Caps Lock key and Windows key in my i3wm config. In particular, I want Caps Lock to take the place of $mod in the config and I also want to be able to reference the Windows key ...
17
votes
1answer
1k views

Keymapping problem when working with Emacs and Openbox

I have an Apple keyboard and I had to do some remapping of the keys to make the mod-4 key the first key to the left of the Space bar for when working with Emacs. The below script worked fine when I ...
1
vote
0answers
10 views

Remap key to two modifers or use meta shortcuts in terminal (terminator)

Background: Running Arch Linux on KDE. KDE shortcuts have a problem with being saved past reboot so i'm using xmodmap and xbindkeys. So I am using xmodmap. Right now caps lock is mapped to meta ...
1
vote
1answer
81 views

How Are Keys or Keycodes Mapped to X Key Symbols?

I am trying to map a function key combination to an XF86 key symbol. The key combination is Fn+F1, which I was able to use showkey to get the raw keycode for. jason@io ~ $ showkey kb mode was RAW [ ...
4
votes
1answer
690 views

F4-key mysteriously reassigned

In the middle of today, my F4 key started producing the letter p, without my conscious acting and I can't seem to revert this change. Whenever I press F4, p appears instead. How can I change this ...
0
votes
0answers
13 views

Globally bind C-m to RET (preferably using Xmodmap)

I have learned to use C-m, C-i, and C-h in the terminal, and would like to bring over at least C-m to a global scale as I have yet to use it in many applications. Anyone know how to do this via ...
12
votes
3answers
5k views

How to prevent the caps-lock toggle effect, without remapping or disabling it?

I have an X11 program that grabs caps-lock, and uses it. The problem is, I want to disable the regular caps-lock toggling, but doing so seems to disable the key. So whatever X11 gets for a caps-lock ...
0
votes
1answer
43 views

change keyboard layout

i have hp pavillion g6 running manjaro, the keyboard looks like this, i broke both shift, the left ctrl and the caps lock... hmm while trying to clean it... i don't really care about ctrl, the other ...
2
votes
2answers
66 views

How do I bind AltGr+key to a symbol?

I want to bind AltGr+W to æ, and some other combinations, how can I do this? I also need AltGr+Shift+W to Æ. I normally use setxkbmap to change the keymap.
1
vote
0answers
43 views

xkbmap remap PrtScr and Insert Keys to Home and Escape

I've been fumbling with xkbmap for a while, and I can't figure out how to remap the Print Screen button to Home. It's as if the us keymap just doesn't mention the PRSC key code at all. I can't use ...
2
votes
1answer
23 views

Create xkb configuration from xmodmap

I have a custom xmodmap file I use, including useful multi-language diacriticals, english quotes, dashes &c. I want to use this map with kmscon, so I need to create a xkb configuration from it. Is ...
1
vote
1answer
130 views

Map Right Alt to Alt instead of AltGr

I have a Kinesis Advantage keyboard and I'm trying to make it so that my right and left Alt keys do the same thing. Currently the left Alt key works as expected but the right Alt key just allows me to ...
1
vote
0answers
90 views

How to permanently remap caps lock to esc in X11?

I want to remap caps lock to escape in X11 (i.e. pressing the physical caps lock button will be interpreted as esc by applications and esc's behavior will not change). The solution must survive an X ...
2
votes
0answers
63 views

Missing KeyPress event

I got new thinkpad and it's missing a ContextMenu key and has PrintScreen key where ContextMenu should have been. I remapped it using xmodmap. The problem is, the key is missing KeyPress events, only ...
4
votes
2answers
152 views

xmodmap keybindings don't work

I am trying to use Xmodmap to add some german diareses/umlauts to my keyboard, but Xmodmap is not working with them (but is with other remappings). I am following this guide: German Umlauts on US ...
0
votes
0answers
29 views

Some apps don't swapped alt&win after xmodmap runs? (GUI emacs)

I have a mac-book-air. I swapped my Alt & Win with xmodmap as per linux post like so: keycode 64 = Alt_L keycode 133 = Super_L remove Mod1 = Alt_L remove Mod4 = Super_L add Mod1 = Super_L add ...
4
votes
0answers
311 views

xmodmap for key combination - how to toggle the Fn behavior?

With Logitech K290 keyboard via USB, F. keys are not accessible by default, and I need to press Fn before using them, which is not really usable. The Fn key alone does not fire any event in xev. ...
2
votes
1answer
58 views

How to swap the Ctrl and Alt keys in ibus?

I swapped both sides of Ctrl and Alt using xmodmap. It is quite convenient to use Ctrl keys in Emacs, Emacs uses Ctrl key a lot. However, when I start ibus, the xmodmap stops working. I googled and ...
10
votes
4answers
4k views

Reassign Ctl and Alt keys - xmodmap error

I am attempting to remap my keyboard in order to make emacs usable. My ergonomic keyboard puts its single Control key in an isolated 4-key island way off to the left. The OS is Debian squeeze. Here ...
8
votes
2answers
1k views

Remapping power key to delete

I have a macbook pro running Ubuntu 13.10 with FluxBox. Unfortunately, the power button is physically above the backspace where I would expect the delete key to be in. In OS X, the PowerKey program ...
1
vote
1answer
110 views

How to map extended buttons on mouse?

I am trying to follow this guide to using a Logitech G600. I have (using a windows computer) mapped each key combo on the mouse to something on a normal keyboard. I have set up some rules in ...
2
votes
2answers
3k views

How to permanently swap esc and caps lock in xfce / xubuntu?

I followed some post a while ago, and it said to make an ~/.xmodmap file like so: ! Swap caps lock and escape remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = ...
2
votes
1answer
144 views

xmodmap shift + keycode to produce keysym

There seem to be few examples for how to use xmodmap to bind a modifier + some key, to a new key. E.g. I want to bind left Shift (keycode 50) + ` (keycode 21) to emit a grave accent character: ` ...
1
vote
1answer
78 views

.xsession executed on login in Linux Mint Cinnamon

I've put a command to change my keyboard mapping in .xession, but this does not appear to be executed on login in Cinnamon, although it seems to work fine on an older MATE box. Since first asking ...
2
votes
1answer
49 views

Xmodmap syntax for rebining shift+up

I would like to rebind some keys on Linux via Xmodmap. Left and up cursor on my Acer (yes, I know) laptop have broke. I would like to map shift+down to up, and shift+right to left. Struggling to ...
29
votes
6answers
28k 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, ...
0
votes
0answers
98 views

xmodmap modified keyboard settings gets overwritten once in a while

I remapped capslock with xmodmap to something which is more useful (in fact I mapped it to F12 which I use as tmux command key, but that's not important here). Apparently this setting get's ...
2
votes
2answers
2k 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 ...
1
vote
0answers
14 views

Key with modifiers to call certain behaviour in xmodmap

HW: Samsung N145 (10" netbook) OS: Xubuntu 14.10 Problem: Backspace key is not functioning. Want to make Backspace key behaviour be called by Ctrl+Del key combination. I guess it should be possible to ...
1
vote
1answer
175 views

Swap CapsLock and Control using xmodmap (man page solution does not work)

I have just upgraded from Fedora 14 with Gnome desktop to Fedora 20 with Mate desktop. Under F14, I previously swapped CapsLock with Control_Left, and Alt_Right with Control_Right. These I did by ...
0
votes
0answers
10 views

Bind multiple chars to single keyboard key [duplicate]

Is there any possibility to bind multiple chars (e.g. a word or even multiple words with spaces between them) to a single key? I've been able to bind specific letters to keys using xmodmap, but not ...
7
votes
3answers
2k views

How to re-enable the caps lock key?

I am currently setting up my default keyboard layout like this: setxkbmap -layout us -variant dvorak -option ctrl:nocaps,[...] It disables the caps lock key and makes it an additional ctrl key, ...
1
vote
0answers
24 views

execute command on pointer movement, wait and revert?

I've got two pointing devices (touchpad and trackpoint) and the goal is to execute a command when movement (any direction, any distance) is detected on the trackpoint, then wait a configurable amount ...
1
vote
0answers
43 views

is this a keyboard hardware limitation?

I have remapped Caps_Lock to Ctrl_L on an ancient mechanical keyboard. It is still impossible to use the caps lock key to produce key combinations like C-e. xev shows the following sequences are ...
7
votes
4answers
10k views

Switch Fn key state

I have this issue with Lenovo Thinkcentre Edge. Its keyboard has Fn key, which acts in my Ubuntu (with Fluxbox) as if it is always "active/pressed". I can't use standard F1-F12 keys unless I hold ...
1
vote
1answer
86 views

S-M-* commands aren't recognized by Emacs

I've noticed commands like M-> (end-of-buffer) and M-S-<right arrow> (org-meta-right) aren't being recognized by Emacs. This was confirmed by describing key bindings using C-h k, which showed ...
1
vote
1answer
267 views

Using xcape + xmodmap to change some keys

Using xcape and xmodmap, how does one Make the CAPSLOCK key behave as a SUPER modifier key when pressed in conjunction w/another key. Make the CAPSLOCK key function as the ESCAPE key when pressed ...
1
vote
0answers
52 views

Remap Keys for ALL layouts

I put xmodmap -e 'keycode 97 = backslash' into a script that is executed at startup. My hardware is a Japanese keyboard, so it lacks some keys and has some extra ones and I am trying remap some of the ...
5
votes
2answers
714 views

How to map Caps Lock as the compose key using Xmodmap portably and idempotently?

I can't seem to find a way to use Caps Lock as the compose key properly. Some methods are not portable since they require that you detect the key number using something like xev on every host. Other ...
2
votes
1answer
42 views

resetting keys changed by xmodmap

I am playing around with xmodmap filename to assign among others, the Euro sign to the number five key on my US keyboard. I have done some wrong assignments and want to reset them, and I don't want ...
3
votes
2answers
620 views

Is it possible to add more modifiers?

I'm using minimalistic WM controlled by a keyboard.. The main question is, is it possible? How? For example, Mod6. I know how to remap existing modifiers, but not how to add a new ones. I'm using Arch ...
1
vote
1answer
107 views

Remapping WASD + R_Shift to arrows

I know this has already been asked so many times, but even after searching, I still can't do it. I simply want to map R_Shift + WASD to the arrow keys (Linux). I can map Shift + WASD to arrows using ...
4
votes
1answer
76 views

Convert UTF-8 character to xmodmap name

Is there a way of converting a UTF-8 character to its corresponding xmodmap name? So if the input is ” the output would be rightdoublequotemark.
4
votes
1answer
372 views

CapsLock as modifier key for application keymaps

I am developer and currently I am using Ubuntu Linux with PyCharm IDE for development of website. In order to improve typing performance I consider change CapsLock to Hyper_L and assign it to mod3 ...
1
vote
1answer
312 views

Remap keypad keys to modifiers

I did some research but I couldn't find a working solution: How can I make my keyboard buttons: KP_1, KP_2, KP_3 to work exactly the same as Shift_L, Alt_L and Control_L? I use Linux Mint 17 ...
6
votes
1answer
7k views

AltGr keys don't work with Ubuntu in VirtualBox

I just installed VirtualBox (from Oracle) in Windows 7, and created a virtual machine with latest Ubuntu. Here in Firefox I can use the left Ctrl key, while the right one doesn't have any effect. ...
11
votes
1answer
674 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 ...
0
votes
1answer
250 views

Is it possible to bind a shell script to a key press [duplicate]

I used xev to find the key code for fn-f5 and came up with a little script to toggle the bluetooth on or off. My question is whether it's possible to bind fn-f5 (keycode 246) to my shell script ...
8
votes
2answers
2k views

Openbox overwrites xmodmap configuration

I am setting up openbox on my laptop running Linux Mint 13. I want my Caps Lock key to act as an additional control key. I put the required settings in my ~/.Xmodmap file and checked it by running ...