Xmodmap is a tool found in the xll-xserver-utils-package and it enables keyboard maps and pointer button mappings to be configured according to the user's preference. It is often used to set up custom keys such as launcher or media buttons on a laptop.

learn more… | top users | synonyms

0
votes
0answers
21 views

Caps-Lock remaps to ESC doesn't desactivate the capslocking

I'm the happy owner of a Asus ZenBook Prime UX31A-R4005P running kubuntu 13.04. I'm also a happy vim user, that mean I'm lazy and don't like for my hands to move more than they should. I did remap ...
0
votes
1answer
14 views

Mapped keys do not work in some applications

I have an Apple keyboard where the right command key (Super_R) is mapped to the right Alt key (ISO_Level3_Shift) with xmodmap: $ cat ~/.Xmodmap clear mod4 keysym Super_R = ISO_Level3_Shift In some ...
1
vote
0answers
26 views

How can I correctly rebind an additional space to another key?

I've bought a split ergonomic keyboard, and wish to bind the left spacebar to space. I'm attempting to use xmodmap, which binds it fine when pressed alone, except it does not correctly recognise ...
2
votes
1answer
72 views

After swapping ctrl and caps in xmodmap, how can I make ctrl work properly for multi-modifier combinations?

I've swapped left ctrl and caps lock by creating ~/.Xmodmap keycode 66 = Control_L keycode 37 = Caps_Lock clear Lock clear Control add Lock = Caps_Lock add Control = Control_L Control_R then ...
2
votes
1answer
110 views

Ubuntu 12.10 xmodmap reset after usb plug/unplug

In Ubuntu 12.10 my .Xmodmap settings get lost (reset) after I plug/unplug my wireless keyboard/mouse combo. Do you know how to prevent or override this behavior?
2
votes
0answers
44 views

How cap I remap Control+m to Enter?

I'd like to remap some key behaviors globally. For example: Control + m -> enter Control + [ -> Esc Is there any tool equivalent to Keyremap4Macbook ? Or is it possible to remap by using Xmodmap? ...
0
votes
0answers
32 views

How can I repmap <CTRL> M to <ENTER> in Ubuntu? [duplicate]

I'm newbie to Ubuntu and I'd like to remap some key behaviors globally. For example, Control + m -> enter Control + [ -> Esc Is there any tool equivalent to Keyremap4Macbook ? Or is it possible ...
1
vote
0answers
189 views

Ubuntu 12.10: Window switching using key combination Alt-Tab changes behaviour when using Alt specified by xmodmap

Alt-Tab normally lets you cycle through open windows and changes focus to the window that is active when you release Alt. This is all fine, but I want to use another key for Alt_L so I've specified ...
0
votes
0answers
51 views

Xmodmap changes aren't taking effect

Ok. I have a thinkpad laptop and my bottom left key is a function key instead of a control key like I'm used to. So I fired up xev, pressed the fn and got a keycode of 151. So I cleared all of it's ...
3
votes
0answers
128 views

bind ctrl+arrows to Home, End. xmodmap does not work

I'm on Ubuntu 12.04. On windows I used to bind CTRL + Left to Home and Ctrl + Right to End via ahk. Now I'm struggling to achieve this behavior in Ubuntu. I've tried editing /etc/inputrc: "\e[1;5C": ...
2
votes
1answer
140 views

How to swap Ctrl and Fn on a Lenovo Thinkpad keyboard?

I tried to exchange my Fn key with left Control, which didn't work. I used the command xev to get the keycodes/keysym. Afterwards I used: xmodmap -e 'keycode 151=Control_L' xmodmap -e 'keycode ...
0
votes
0answers
93 views

Ubuntu map multiple keys to a single key

I want to map a group of keys in which I want to map Alt and l key to the Left arrow key. I mean when press Alt (both right and left) and l key, my ubuntu will functions like when I press the Left ...
6
votes
1answer
238 views

remap right alt to behave as right ctrl

I'm trying to remap my right alt to behave like my right ctrl so I can use my right thumb to press the ctrl button. This is ubuntu 12.04. I've created the file .Xmodmap in my home folder with the ...
1
vote
0answers
296 views

Remapping keys on Apple keyboard

I'm using the German Apple keyboard for both MacOS X and Ubuntu 12.10. $ lsbusb ... Bus 002 Device 004: ID 05ac:0250 Apple, Inc. MP110Z/B I've successfully remapped the exchanged < and ^ ...
1
vote
0answers
168 views

xmodmap, keyboard shortcuts, numpad

EDIT: after frustrations with this, I have decided to take an entire different route, I am no longer interested in this, but am not able to delete it. That said, the problem still exists, and maybe ...
3
votes
2answers
148 views

how to remap Ctrl to Escape if pressed and released on its own

I want to remap Control, so that: If it is pressed and released with no other key, it acts as Escape. If it is pressed & held together with another key, it acts as Control (no change in ...
1
vote
0answers
85 views

Map function+backspace to delete

I'm used to Apple laptops, on which Function + Backspace is mapped to Delete. I'm also okay with Shift + Backspace. Is there a way to obtain this? Note, I'm using Xmonad and have some keyboard ...
0
votes
0answers
16 views

How to run a command after x-session has finished loading? [duplicate]

Possible Duplicate: How do I set Xmodmap on login? I have Ubuntu installed on an Imac. I have a spanish keyboard and the the keys "<" and "ยบ" are inverted. I can solve this issue with ...
0
votes
1answer
121 views

xmodmap Right CTRL to work as Right SHIFT

I've tried searching a lot with no success. I know this can be done because I have done it before, but since then I've reinstalled the OS. I know that I used xmodmap to do this the last time. My ...
1
vote
0answers
75 views

Can I configure both Alt keys to print 3rd level signs via xmodmap or keyboard-options?

Currently only my right Alt-Key (which xev prints out as keycode 108 / "ISO-Level3-Shift") is able to print 3rd-level characters like {[]}. The left Alt-key (xev shows it as keycode 64 / Alt_L) ...
2
votes
1answer
374 views

How to change decimal comma to decimal period in numpad?

How to change the decimal comma ',' to decimal period '.' in the numeric pad of the keyboard? I have used xmodmap but every time that I change my keyboard layout the changes (by xmodmap) are being ...
0
votes
0answers
121 views

Questions about remapping keys

I have a couple of questions about remapping keys et al. How to interpret the output of the command xmodmap -pk. I put in xmodmap -pk | less and try to browse for the key I am looking for. Here's a ...
2
votes
1answer
163 views

Fixing Two key events on single key press by xmodmap

I'm using a Dell Latitude D620. Whenever I press the space key, the down arrow key is also triggered to perform its action. Here is the log: KeyPress event, serial 30, synthetic NO, window 0x3200001, ...
0
votes
2answers
285 views

Making a backtick produce just a backtick

My backtick key (`) produces nothing when first pressed - I have to press it twice to generate a `. If I forget, and type ` e, I get an accented e character. I am only able to fix this temporarily, ...
3
votes
3answers
474 views

Remapping Caps Lock to Control and Escape (not the usual way)

I know how to use xmodmap to remap the Caps lock key so it acts as a Control key, or as an Escape key. I would like to combine both features as follows: When I push, then release, the Caps lock key, ...
0
votes
0answers
58 views

Using Caps-Lock to Tab through Child Windows

I've been trying to use xmodmap to get a little more functionality out of the Caps-Lock key. I'd like to use it for the same functions as the back-quote/tilde key ... to 'tab' through child windows. ...
0
votes
0answers
135 views

keyboard fix xmodmap

I tried to change the keyboard layout using xmodmap command. I'm using the ubuntu 11.10. My change didn't work and now i wanna change back to default layout pt-br. How can i do this? I tried to delete ...
0
votes
1answer
105 views

Mapping Ctrl-X to Ctrl-A without Xserver on Ubuntu 12.04

Inspired by this article: http://m.linuxjournal.com/content/swap-your-laptop-ipad-linode?page=0,3 I have tried to emulate the set up of an ipad connecting to a ubuntu box hosted by linode. ...
0
votes
1answer
128 views

Unable to change Alt_R key using xmodmap

I've been trying to change the key mapping of my keyboard for certain keys. So far I've been successful to do it using xmodmap for a variety of keys. However, no matter what I do, I can't get the ...
0
votes
2answers
413 views

How can I remap my keys to act like the Macintosh keyboard (like hold alt l + l click = r click)?

I want my keyboard layout to act like a Macintosh keyboard. It's hard to use my computer after years on a mac. I want to disable my right mouse click, and replace it with alt + right mouse click. ...
1
vote
1answer
121 views

Restoring my original keyboard mapping without logging on

I used xmodmap to remap some keys. I followed directions to restart. Now, I can't log in. How can I restore my previous keyboard mapping?
1
vote
0answers
21 views

Restoring my original keyboard mapping without logging in [duplicate]

Possible Duplicate: Restoring my original keyboard mapping without logging on I used xmodmap to remap some keys. I followed directions to restart. Now, I can't log in. How can I restore my ...
2
votes
1answer
892 views

Keyboard / keymap problems with Xubuntu 12.04 + NX nomachine

I'm running NX client on my Macbook Pro to connect to a Xubuntu 12.04 desktop at work. I have configured NX client to start up a console upon connection. I am able to connect to my remote linux ...
2
votes
0answers
428 views

How to share two keyboard on the same laptop, french iso layout and usa ansi layout keyboard with usb?

I recently buy a "noppoo choc mini" with this specific ANSI US-INTERNATIONAL pc84 layout. This specific keyboard have only 84 key , a 60% (compact tenkeyless) reduced layout My problem is ...
6
votes
3answers
3k views

How do I switch the Command key and Control key on a MacBook Pro (12.04)?

I have scoured the web, and I can't seem to get Xmodmap / anything to work properly. I want to swap BOTH my Command keys with my Control key - in essence, inverting what they do currently. How would ...
1
vote
2answers
2k views

Ubuntu 12.04 forgetting XModmap settings often

I have the following contents in my ~/.Xmodmap file. It seems a couple times a day (without rebooting or logging out) I need to rerun the command "xmodmap ~/.Xmodmap" to reset my settings. The only ...
5
votes
2answers
11k views

How to run commands at login on ubuntu 12.04?

I have the file ~/.xmodmap where i swap a few keys on my keyboard. This file was loaded properly on my previous Ubuntu desktop but since the upgrade to 12.04 it's no longer loaded when I login to my ...
0
votes
1answer
103 views

Change is key-mapping is not remembered in Ubuntu 10.04

I have mapped my PageDown key to the Return command on my keyboard as the original Return key is broken. I used the following command [ I'm using Ubuntu 10.04 ]: xmodmap -e 'keycode 117=Return' It ...
2
votes
1answer
623 views

User-level script run by lightdm

I'd like to do key remapping that effects only my user, but everywhere within my window manager, not just in a terminal. In lightdm, I select awesome as my window manager and log in. Are there any ...
3
votes
1answer
630 views

Terminal command to control the standard Music/Video Player(Play/Stop/Next..)

After googling for a while now im unable(-.-) to find a solution for this: I want to tell my standard(as noted in settings) music/video player to play/stop/next via terminal. But with a global ...
4
votes
2answers
1k views

Remapping keyboard shortcuts (copy, paste etc) to Alt key instead of Ctrl

Interestingly, it turns out this is almost impossible to do. Remapping Alt key to behave as another Ctrl key is not a solution because you lose the Alt key functionalities (some of which are ...
3
votes
1answer
304 views

Changing keybindings for Ubuntu using xmodmap fails

I've changed some of the keybindings for my keyboard using xmodmap, I've specifically changed my caps-lock key to point to CTRL_L and my CTRL_L key to point to Super_L. This registers in xev but my ...
0
votes
2answers
593 views

Caps Lock/ Tab Swap Xmodmap Errors

Ubuntu 11.10 First off, I'm completely new to Linux, as in I just partitioned my computer two days ago and installed Ubuntu. My tab key recently quit on me, and I would rather swap the caps lock and ...
0
votes
1answer
941 views

Can't remap Ctrl key with xmodmap

My laptop keyboard doesn't have a right Ctrl key. And I use a different layout than the native layout of my keyboard, so there are some keys that do nothing. So I'm trying to remap one of those keys ...
2
votes
2answers
278 views

Changing Ctrl-Win-Alt keys to Win-Alt-Ctrl

Coming from a Mac, the standard modifier keys on Linux (and Windows) are pretty irritating. I need my thumb to be able to hit control so I need to change alt to control. I need the windows key out ...
2
votes
0answers
494 views

Apple Aluminum Keyboard Via Bluetooth - Fn Key Problem [closed]

I'm connecting an Apple Bluetooth Aluminum keyboard (this one) to my Lubuntu setup using the blueman applet. The keyboard types fine, but I would like to use its fn key to change screen brightness ...
3
votes
1answer
301 views

xmodmap works for gnome session, but not for apps?

I'm running Ubuntu 11.10 using the gnome-fallback mode with compiz. My keyboard is the Apple metal add-on USB keyboard. My .Xmodmap file is set to swap the Alt and Command keys. I built the key map ...
9
votes
1answer
2k views

How do I turn off Caps Lock (the lock, not the key) by command line?

For some reason my laptop is stuck in Caps Lock. I have the Caps Lock key mapped by xmodmap to hyper_l, so I don't have a caps_lock key to turn it off. Is there a way I can turn it off by command ...
2
votes
2answers
486 views

xmodmap is not working properly on resume

Since upgrading to 11.10, xmodmap seems to be working nowhere near as well. I would like to be able to run xmodmap after unlocking a locked screen, as it doesn't work. I have to run it from a ...
2
votes
1answer
401 views

keybinding issues with xmodmap across synergy

I've got two systems I use across Synergy. On the main one I have a normal keyboard that I swap caps lock and ctrl for. So I do: xmodmap -e 'keycode 66 = Control_L' xmodmap -e 'clear lock' xmodmap -e ...

1 2