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

learn more… | top users | synonyms

2
votes
1answer
34 views

How can I change an underutilized keyboard key into a modifier key

I have a Korean keyboard that looks like this: Hanja (한자), just to the left of space, is so little utilized even when typing in Korean, yet it's in prime real real estate for my left thumb as an i3 ...
0
votes
0answers
9 views

Making super sticky

On a Mac, I've used clear control clear mod4 keysym Control_L = Super_L keysym Super_L = Control_L keysym Super_R = Control_R add control = Control_L add control = Control_R add mod4 = Super_L ...
3
votes
2answers
31 views

disable insert key for all but one applications

I would like to disable the insert key on my keyboard, because I often hit it accidentaly when typing, and it messes up my text. I found I can use xmodmap to disable insert key completely: xmodmap -...
0
votes
0answers
25 views

xmodmap and mod

I followed the arch xmodmap guide but I still have some question: for every keycode I have 8 entries: normal, shift, mode_switch, mode_switch + shift, altgr, altrgr + shift. Then other two which I ...
1
vote
1answer
47 views

~/.xinitrc and Xmodmap startup item fail to take effect on startup in mint 17.3

In accordance with this post I have added xmodmap ~/Documents/looseScripts/Xmodmap to my ~/.xinitrc. I have also created an item in "startup applications" with the command: bash -c "xmodmap ~/...
2
votes
0answers
17 views

read .Xmodmap on login in Cinnamon

I am running Linux Mint 17 and want Cinnamon to read from my .Xmodmap on start. Seems that ~/.Xmodmap is not being read by default. How do I do that?
1
vote
1answer
93 views

convert .Xmodmap to custom.xkb file and load it from $HOME directory - customize x keyboard [duplicate]

I use the following .Xmodmap file to map a few symbols and German Umlaute öäü: keycode 108 = Mode_switch keycode 13 = 4 dollar EuroSign keycode 19 = ...
2
votes
0answers
35 views

Map ctrl+key different from typing key in xkb or xmodmap

Is it possible to map ctrl+key different from regular typing key in linux? I have done it in windows with MSKLC but can't figure out how to do it in linux. E.g. I want to type dvorak but have regular ...
1
vote
0answers
50 views

Global vim-like (hjkl) navigation with numlock & xmodmap?

I'd like to be able mimic vim's hjkl navigation everywhere in the system by utilizing num lock (or scroll lock), and making hjkl keys act as arrows whenever num lock is on, and regular behavior ...
1
vote
0answers
60 views

Can I xmodmap only a specific keyboard?

I'd like to swap some keys but only in external keyboard. Is this possible with xmodmap? I've found this question: Can I Xmodmap only a specific device? but it refers only to mouse. I found here ...
1
vote
0answers
15 views

How to map S-Up to Down? [duplicate]

The down key on my laptop is broken. I want to map shift+up to down. My original layout had (from xmodmap -pke) keycode 111 = Up NoSymbol Up keycode 113 = Left NoSymbol Left keycode 114 = Right ...
5
votes
0answers
44 views

Why do my xmodmap binds involving AltGr only work one some keys?

I want to remap my AltGR+Right_Windows but I can't figure out how. No matter what I try, pressing the right windows key emits the name keysym when right alt is pressed or not. These are the contents ...
1
vote
0answers
41 views

Why could sudo be required OUTSIDE of shell script but not INSIDE of shell script? [closed]

Using the command xmodmap -e "keycode 66 = Hyper_L" in the console requires sudo. Putting the command xmodmap -e "keycode 66 = Hyper_L" inside a shell script does NOT require sudo (that is, I don't ...
0
votes
0answers
35 views

Shift Key won't work with F1,F2 etc. keys in gnome2. What could be the reason?

I have a vnc session with gnome2 desktop. The following are couple of examples where multiple key press working as expected and the last two examples have unexpected results (with F1 & F2). ...
1
vote
1answer
55 views

Why isn't X treating ALT_L and ALT_R differently w/r/t Mod1

I have changed the definition of Mod1 via xmodmap to not include ALT_R (to understand why scroll to the bottom). The current layout of the modifiers is below. Despite ALT_R not participating in the ...
1
vote
0answers
19 views

particular Laptop key has no keycode (found with xev from Xorg) [duplicate]

that following key should be XF86AudioLowerVolume, but it has not even a defined keycode, i could assign the function of XF86AudioLowerVolume. I've used xev to find that out. I'm using debian Jessie ...
0
votes
0answers
12 views

Prevent touchpad from switching to secondary click

So I'm trying to change the primary click on my touch-pad to left-handed with xmodmap -e "pointer = 3 2 1". it changed successfully, but there is one functionality I'd like changed. The touch pad ...
1
vote
2answers
79 views

Can Xmonad treat left and right alt differently?

I have an application that utilizes ALT_R+ENTER to perform a function. When using this application in Xmonad, the combination Mod1+ENTER triggers the function "swap the current window with the master ...
2
votes
1answer
287 views

Changing specific keys on Apple keyboard under Fedora 22

I'm trying to change some specific keys on my USB Apple keyboard running Fedora 22. Just spent three days searching for an answer and trying different solutions, I ended up using xmodmap and still ...
1
vote
1answer
172 views

Set global xmodmap in Debian

I currently have xmodmap setup for my user so I can type certain special characters. However, this only applies to my user, and I need these characters to be type-able everywhere, for all users. Is ...
1
vote
0answers
42 views

Why does Caps Lock key behave as Caps Lock key without the Lock modifier?

At first, there is no key mapping. The Caps Lock key on my keyboard behaves as Caps Lock. lone@debian:~$ xmodmap -pke | grep Caps_Lock keycode 66 = Caps_Lock NoSymbol Caps_Lock lone@debian:~$ ...
1
vote
1answer
62 views

After mapping Caps Lock to Escape using xmodmap, how to revert Caps Lock back to Caps Lock without altering Escape key?

I have mapped my Caps Lock key to function as Escape using this command. xmodmap -e "remove Lock = Caps_Lock" -e "keysym Caps_Lock = Escape" Now how can I undo this mapping? I tried the following ...
1
vote
1answer
666 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
98 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 ...
1
vote
0answers
59 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 (...
0
votes
1answer
81 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 ...
4
votes
3answers
393 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
128 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 ...
4
votes
1answer
79 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
548 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 ...
2
votes
0answers
328 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
205 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 ...
0
votes
0answers
44 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 ...
1
vote
1answer
346 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 [ ...
1
vote
1answer
228 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 /etc/udev/...
4
votes
1answer
471 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
95 views

Xmodmap syntax for rebinding Shift+Down to 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
228 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
146 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
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 ...
4
votes
2answers
451 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
28 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 ...
2
votes
1answer
126 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 ...
1
vote
0answers
46 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
84 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
529 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
274 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
98 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
130 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
229 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 ...