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

learn more… | top users | synonyms

2
votes
1answer
24 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: ` ...
2
votes
1answer
19 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 ...
1
vote
1answer
18 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 ...
0
votes
0answers
47 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 ...
1
vote
0answers
12 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 ...
0
votes
0answers
9 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 ...
3
votes
1answer
65 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 ...
1
vote
0answers
19 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
32 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 ...
1
vote
0answers
26 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 ...
1
vote
1answer
126 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
1answer
97 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 ...
2
votes
1answer
29 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 ...
1
vote
1answer
74 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
58 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 ...
1
vote
1answer
198 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 ...
1
vote
1answer
49 views

How to add additional control key?

I am using xkb to add an additional control key as follows: key <HENK> { [ Control_R ] }; However, it does not work. I even tried xmodmap without success: xmodmap -e ...
3
votes
0answers
63 views

Keep keyboard layout upon inserting external keyboard

I have a custom keyboard layout, that I enable using this commands: setxkbmap -verbose us -variant altgr-intl xmodmap -verbose /home/coub/.myxmodmap This works just fine, the thing is, that when I ...
4
votes
1answer
175 views

Binding Shift-Enter to insert a newline without evaluating the current expression

I try to bind Shift-Enter to insert a newline without evaluating the current expression in the terminal and in repl modes. Reading through the ArchWiki, I tried setting this in my ~/.Xmodmap file and ...
3
votes
0answers
39 views

Mode_switch + Shift not the same as Shift + Mode_Switch?

I've this in my ~/.Xmodmap: keycode 47 = Mode_switch NoSymbol Mode_switch keycode 25 = w W backslash bar Shift+Mode_switch+W produces bar, which is what's intended. However Mode_switch+Shift+W ...
4
votes
1answer
57 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
180 views

xmodmap problems and inconsistencies with more than 4 alternative symbols per key

I was trying to make my keyboard more useful and used xmodmap to map mathematical and greek symbols to mod3 modifier level. Where caps lock is mapped to mod3. As I understand, the 8-entry lines in ...
1
vote
1answer
379 views

xmodmap configuration reset after time

I wrote a simple layout changing configuration for xmodmap (Caps/Ctrl swap, and such) and stored the config to $HOME/.Xmodmap. When I run xmodmap ~/.Xmodmap everything works fine, the layout is ...
1
vote
0answers
83 views

dead key after switching two keys with xmodmap

My keyboard switches the (German) keys [^] and [<], so I want to switch the two keys. I identified the keycodes using xev and created a file ~/.xmodmap containing keycode 94 = asciicircum degree ...
1
vote
1answer
186 views

How to bind super key to Ctrl+Shift using xmodmap?

I have read the xmodmap documentation. I could only find information on how to bind one key to another. How do I bind one modifier key to a combination of other modifier keys? Can I do this using ...
4
votes
2answers
476 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
2answers
960 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 ...
3
votes
1answer
989 views

Remap keys on GNOME3.8 using xmodmap?

I want to remap some keys on my keyboard, specifically: page up key to home and page down to end. On previous versions of GNOME 3 I just created a .xinitrc file that contained: cat .xinitrc ...
8
votes
1answer
761 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 ...
3
votes
1answer
220 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 ...
2
votes
1answer
284 views

Since yesterday's Debian update, X11 does not appear to load my ~/.Xmodmap file, what would the most proper way of loading it be?

Due to lack of multimedia keys on the current keyboard, I bind F12 to play/pause, but that stopped working since yesterday, after to a large batch upgrade from the last month or so. So, what I am ...
12
votes
3answers
571 views

How can I write a “idempotent” .Xmodmap

Currently I have an .Xmodmap file that changes my Command to Ctrl, then changes my Ctrl to Super (I'm running Linux on a Mac). It works quite well, when only run once but on successive runs (for ...
2
votes
0answers
129 views

xmodmap hanging the system for 20 secs and not sticking

I edited the keyboard map using xmodmap as per https://wiki.archlinux.org/index.php/Xmodmap, and I have two problems: executing xmodmap ~/.Xmodmap completely hangs the system for 15-25secs, which ...
3
votes
0answers
69 views

Make Compose not compose after certain key presses

On my laptop, I use the Win as a modifier. With the Fn key pressed, the key sends a different keysym and I use that as a Compose key. keycode 133 = Hyper_L keycode 134 = Multi_key add mod4 = Hyper_L ...
1
vote
0answers
44 views

I want to make both Control keys as a Super key

I want to make both Control_L and Control_R as a Super key (Windows Key). Is this possible? I only made Control_R as a Super key but I could not make Control_L. Here is what I done. xmodmap -e ...
6
votes
1answer
432 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 ...
2
votes
1answer
222 views

Colon/Semicolon remapping with xmodmap with two active setxkbmap layouts

Gentlemen, I'm a non-native english speaker and need a second language layout. And I'm a heavy Vim user, and use : much more often than ;. At the moment they are remapped in .vimrc, buth that causes ...
11
votes
1answer
553 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
642 views

Weird problem. My left arrow key is not working and sometimes muting sound

My left arrow key is not working as intended. In KDE, it mutes the sound. In Awesome Window manager, it does nothing. Here's my 00-keyboard.conf file : I have tired to comment out XkbModel, ...
5
votes
1answer
418 views

How to remap a key combination to a key?

Is it possible to remap a key combination to a key in X server based system, so that for example if I press End + Arrow_up, keycode for Home is generated? Google seems to be silent on this issue. It ...
2
votes
1answer
644 views

Mapping AltGr to left control

I mapped my AltGr key to Ctrl with the following command: setxkbmap -option ctrl:ralt_rctrl However, when displaying the bindings with xmodmap -pke I can see that the keycode is associated to ...
1
vote
1answer
172 views

xmodmap causes incorrect keyboard shortcuts

I used xmodmap to switch the Caps Lock and Ctrl keys on my Thinkpad X120e. The keys are swapped but this has caused keyboard shortcuts in several applications to stop working correctly. In Libre ...
6
votes
1answer
4k views

Why doesn't this udev rule trigger upon removal of the device?

I have two mice, one which has an issue where the middle mouse button and button6 get triggered simultaneously. So I configured my ~/.Xmodmap to disable this button. At the same time, however, I ...
0
votes
1answer
199 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 ...
2
votes
2answers
2k 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 = ...
3
votes
1answer
86 views

How to clear keybinding

I'm in Linux (if it's relevant: Fedora 17 x86_64, 3.6.11) and my laptop's PageUp key has gone ultrasensitive on me. I'd like to disable it (remap it to nothing at all) as I've never liked it where it ...
3
votes
1answer
700 views

Setting Mod4 in awesome

I'm trying to set up awesome. When I start it the Mod4 (Windows) key is not working. So I tried to extent my .Xmodmap clear Mod4 add Mod4 = Multi_key When I run xmodmap .Xmodmap the Mod4 works, but ...
6
votes
1answer
325 views

Back button to middle mouse button

I would like to map "Back" button (xev shows it as "button 7") of my mouse (A4Tech X-7) to act as a middle mouse button. Is there a way to do this? I'm lost in google, finding only how to map buttons ...
3
votes
1answer
248 views

xmodmap KeyPress Event to ButtonPress event

I just got a logitech t400 mouse and everything is working well, except I want to remap the "top" part of the middle mouse to actual middle mouse function. When I run xev, and capture the clicks, ...
0
votes
1answer
468 views

Xmodmap on bashrc not working [duplicate]

Possible Duplicate: Why won’t my xmodmap command run on startup/login? I have my .bashrc file with the three following commands: xmodmap ~/.xmodmap synclient TapButton2=2 synclient ...