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

2
votes
1answer
591 views

How to use Control as modifier with xmodmap?

So I'm trying to create a combination of keys to generate ISO keys for the Portuguese layout, the key in question is the < >, pressing it will normally generate the < character, < > + Shift ...
2
votes
1answer
412 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
79 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 ...
0
votes
1answer
7 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
130 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 ...
0
votes
1answer
56 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?
0
votes
1answer
122 views

How to make Control-j works as Return without Control bit set(!) using xkb [and|or] xmodmap

It looks like extremely convenient for me to use Control-j instead of Return in xterm and vim, and I want to use this sequence for all X apps. It can be easily done using xkb by remapping ...
3
votes
0answers
383 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
44 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
144 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
216 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
624 views

Setting Hyper and Super modifiers for certain keys with setxkbmap or xmodmap

Problem: I want to modify/redefine my keyboard layout (pc105 se) so that when I press certain keys with mod3 (super) and mod4 (hyper), a different character is returned than usual. E.g. Keycode 61 ...
2
votes
0answers
313 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
484 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
20 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
76 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
34 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
197 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
666 views

Remapping keys using xkb

My return key is physically dead. I'm running xubuntu. I am able to remap the AltGr to return using xmodmap. However when I reload xmodmap, either via shell or automatically during boot, it will hang ...
1
vote
0answers
88 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
264 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
1k 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 ...
1
vote
0answers
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
0answers
70 views

Binding superkey + Ctrl to behave as right alt

I can't do any symbols such as ¡@£$€¥{[]} ("lower" symbols on number keys) using left ctrl and the super key on my keyboard. I can do these symbols by using the right alt. I would like to use a ...
0
votes
0answers
58 views

Some programs (TexMaker) ignoring Compose key?

I have mapped my right shift to the compose key using xmodmap. ~/.Xmodmap: keycode 62 = Multi_key This works fine in vim, my browser, LibreOffice Writer etc. But in TexMaker, it doesn't work. Any ...
0
votes
0answers
49 views

My “Menu” key is ISO_Next_Group but also works like PgDown in opera browser

I configured my Menu key to be language_toggle button: $ xmodmap -pk|grep Menu 117 0xfe08 (ISO_Next_Group) 0xff67 (Menu) 0xfe08 (ISO_Next_Group) 0xff67 (Menu) 0xfe08 (ISO_Next_Group) ...
0
votes
0answers
58 views

modify keyboard layout with xkb

I use Xmodmap to modify the layout. For example I use caps-lock as an extra modifier Mode_switch to type German umlauts. But I run into problems when using synergy or remote desktop protocols since ...
0
votes
0answers
74 views

Combining Shift + Num_Lock in xmodmap

I have a laptop that has KP_Home and KP_End functionality for the KP_7 and KP_1 keys, respectively. However, the current behavior is as follows (for KP_Home only): No Mods: KP_Home Shift: ...
0
votes
0answers
85 views

How do I swap the control and caps lock keys on a Red Hat 6.4 system?

I would really like to swap the Caps Lock and Ctrl keys on my new Red 6.4 machine, but the keyboard dialog that I had to do that on RH5 is not available, and RH6.4 introduced a bug which prevents the ...
0
votes
0answers
94 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 ...
0
votes
0answers
80 views

bash bind ctrl+Mode_switch+f?

I've messed with xmodmap to get more shortcuts for Emacs. I have stuff like this in my ~/.Xmodmap: keycode 41 = f F U03C6 U03A6 The unicode ones are φ and Φ. In graphical Emacs, I can bind: φ ...
0
votes
0answers
221 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 ...
0
votes
0answers
557 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 ...
0
votes
0answers
446 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 ...