xmodmap is a utility for X that is often used to remap keys and mouse buttons to whatever a user desires.

learn more… | top users | synonyms

0
votes
2answers
214 views

How to keep per-keyboard layout settings?

I am using xmodmap (and sometimes xkbcomp instead) to adjust my keyboard layout (e.g. mapping Caps Lock to the Mod3 modifier). When I plug a USB keyboard into my laptop or insert a YubiKey (which ...
2
votes
1answer
438 views

Remap Alt/Meta to L_Control (emacs-only solution acceptable)

I'm looking to use the left control key as an additional [Meta] in emacs. I'm running Ubuntu 10.04 LTS, and I assume something could be done using xmodmap. Previous attempts at this have caused me to ...
1
vote
1answer
43 views

xmodmap: `Shift+CapsLock` -> `Delete` returns error bell

Because CapsLock has the keycod 66 on my English_US keyboard layout, the command xmodmap -e "clear Lock" -e "keycode 66 shift = Delete BackSpace" turns CapsLock into the Delete key and ...
1
vote
1answer
97 views

Linux remap capslock to iso <>| key

Heres my .Xmodmap: remove Lock = Caps_Lock keycode 66 = less greater less greater bar brokenbar bar brokenbar The greater an less signs are working but the pipe still does not want to. What am I ...
1
vote
1answer
2k views

Xmodmap fails to remap modifier keys

When I try to move keys, so that I have CapsLock on escape, Control on CapsLock and Escape on left control, I get the following error: % xmodmap ~/.Xmodmap X Error of failed request: BadValue ...
0
votes
1answer
16 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 ...
0
votes
1answer
124 views

Undo remap using xmodmap

In an attempt to remap the right alt key to my left alt key I had run the following: xmodmap -e 'keysym Alt_L=Alt_R' Now I cannot revert it back to it's original state. How can I undo this blunder?
3
votes
0answers
416 views

xmodmap has no effect

First post. Here it goes: I have Ubuntu 10.10, maverick. A few days ago I was trying to convert my 'command' key on my apple computer to a 'ctrl' key, and after searching online I ran into xmodmap. ...
2
votes
0answers
76 views

Can I get urxvt to recognize xmodmap configuration?

i switch from an apple-style keyboard at home to a microsoft-style keyboard at work. the primary difference in these keyboards is that the super key and the alt key are transposed. i've used xmodmap ...
2
votes
0answers
197 views

xev says Caps Lock remap worked but other apps don't see it

I'm trying to remap Caps Lock to Control. Before I modify anything, xev reports the following for a press/release of Caps Lock: KeyPress event, serial 73, synthetic NO, window 0x2600001, root ...
2
votes
0answers
283 views

How do I permanently map Shift-Right to PageUp on xubuntu?

I got myself a laptop and the keyboard is slightly goofed up because the right Shift key is in a place where I have typically had the PageUp key. So, I wanted to figure out how to remap the right ...
2
votes
0answers
322 views

xmodmap confusion betwen AltGR and Left Control

I'm having trouble making AltGr work on ubuntu so I can type 3rd level characters (@£§,{[],etc) it so happens that RCtrl+RAlt don't work either so I have no way of typing such characters. My RCtrl ...
2
votes
0answers
538 views

Swapping special keys

I am on archlinux and trying to swap the left Alt key with the left Ctrl key for my convenience in emacs as well as bash command line editing. I use the following ~/.xmodmap: remove mod1 = Alt_L ...
1
vote
0answers
29 views

Can I map capslock to lshift + rshift?

I want to toggle capslock when I hit both shift keys at once. Is this possible? I'm currently using xubuntu and xmodmap if it matters at all.
1
vote
0answers
130 views

Switching left alt and left win

I have a Thinkpad X230 (german layout, [edit]running linux[/edit]) and I want to switch the left win- and the left alt-key somehow with the right alt-key (AltGr) not being touched. However, I haven't ...
1
vote
0answers
150 views

Is there a way to make `xmodmap ~/.Xmodmap` run faster?

On Fedora 19, when I run xmodmap ~/.Xmodmap it locks my display for about 15-20 seconds. The command completes successfully, but I am unsure of why it takes so long. I'm assuming there is an X ...
1
vote
0answers
65 views

Prevent Screenshot in gnome using xmodmap

I want to prevent screenshots from being taken in GNOME using keyboard shortcuts. I need to do this by running a script in such a manner that it can be reverted later. I tried to do this using ...
1
vote
0answers
261 views

Xmodmad does not run at startup/login

I put settings in a file called ~/.Xmodmap: xmodmap -e 'keycode 66=Return' xmodmap -e "clear Lock" The next time I logged in, I was prompted as to whether to load ~/.Xmodmap. I loaded it, and tick ...
1
vote
0answers
743 views

Mac Keyboard Command key remapping doesn't work in Terminal

I'm using a Mac keyboard on Linux Mint 13 - Mate. I want to be able to copy/paste/cut as I done on the Mac, but on Linux with this Mac keyboard. I tried the settings I've found mentioned in several ...
1
vote
0answers
99 views

Debugging xmodmap

I did something stupid. I was screwing around with xmodmap a few weeks back, and gave up what I was trying to do. I find out later that Shift-J no longer does anything (I can't type capital "J"). ...
1
vote
0answers
478 views

xmodmap stopped working on startup

I've been using xmodmap to replace my Caps Lock key with Control for a few years now. However, every since I upgraded to Ubuntu 11.04 it seems to have stopped working. I'm using Gnome in combination ...
1
vote
0answers
276 views

error on xmodmap modifier for Control_R

I'm trying to make the Insert key on my keyboard (i know from xev that it has keycode 118) work like a ctrl key ... since my stupid keyboard does not have a ctrl key on the right, just the left. I ...
1
vote
0answers
2k views

How to remap brightness & volume keys on Asus AspireOne / Ubuntu Lucid?

I want to remap the following keys on my Asus AspireOne running Ubuntu Lucid: Brightness down (Fn-Left) -> Home Brightness up (Fn-Right) -> End Volume up (Fn-Up) -> Page up ...
0
votes
0answers
12 views

xmodmap setting reverted once every few minute for usb keyboard

I have an xmodmap setting that convert CapsLock to control on my laptop, when I am using a usb keyboard, the CapsLock key changes back to its default meaning every once in a few minutes so I need to ...
0
votes
0answers
12 views

Chromium is recognising keys that I've disabled with XModMap

I have set up XModMap to remap some keys, specifically to remove "Page Up" from the PageUp key (& likewise for Page Down). I have reassigned Page Up/Down to another set of keys. This works. ...
0
votes
0answers
37 views

How to map space to control and unmap win from Hyper_L using xkb/setxkbmap

I am trying to make my space act as control by default (and as space when tapped by using xcape) and to make capslock act as the only hyper modifier. I have a working configuration for this in ...
0
votes
0answers
119 views

Fedora on Mac: Remap “Command” key to “Ctrl”

I have installed Fedora 20 on MacBook Pro (2009 Edition). On Fedora, with the Mac keyboard layout "Command" key (⌘)" key does not work like "Ctrl" key and thus I am not able to perform Copy, Paste, ...
0
votes
0answers
34 views

Lost Meta key in RHEL/Gnome

I seem to have lost my meta key... I am running xev, and when I press "meta" (in fact a "Win" key on my keyboard), the following event is seen: KeyRelease event, serial 33, synthetic NO, window ...
0
votes
0answers
412 views

Where are xmodmap settings saved?

I created my own keyboard layout and loaded it with xmodmap .Xmodmap. Now I want to go back to a default layout, but after a reboot the layout defined with xmodmap are still present. What files is ...