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
1answer
19 views

Left Alt key should work as right Alt key (Alt Gr)

I'm using a German Apple keyboard on my Ubuntu 12.04 machine. Under Mac OS X the left Alt key has the same behavior as the right Alt key (I think the right Alt key acts a Alt Gr). I don't know what I ...
0
votes
0answers
25 views

Remap Windows key

I have a hardware "Windows" button on the front of my Lenovo Ideapad Yoga 13 that maps to the "Windows" key. According to xev, the keycode passed by the "Windows" key is the same that is passed by the ...
0
votes
0answers
13 views

Problems remapping right shift in 12.10

When I use xmodmap -e "keycode 62 = Alt_L" the command succeeds, but the shift key remains a shift key. When I attempt to map Alt_L to other keys, the command succeeds and the key is successfully ...
0
votes
0answers
21 views

Enter key not working after xmodmap change

Mistook key number for another key, now i cant get it back to working. tried: xmodmap -e "keycode 36 = Return NoSymbol Return" xmodmap -e "keycode 36 = Return" xmodmap -e "keycode 36 = Enter NoSymbol ...
0
votes
0answers
23 views

Overload capslock with esc and ctrl using xcape

I want to: Turn off capslock when hitting the capslock key Escape when hitting the capslock key Behave like ctrl when pressing down the capslock key What I have in my ~/.Xmodmap: !Set Capslock to ...
1
vote
0answers
36 views

How do I create curly brackets using Shift + Alt

I'm used to writing curly brackets using Left Shift + Left Alt + 7 or 0. As of right now I can only do them using the Right Alt + 7 or 0. How do I configure my Left Alt + Left Shift to behave as ...
1
vote
0answers
41 views

Remapping Menu key to Delete on Xubuntu

I would like to bind my Menu key (the one that brings up the context menu at your cursor location) to my Delete key for convenience. Preferably, I'd like to do this through xkboptions in ...
1
vote
0answers
21 views

How to remap pgup and pgdown to home and end Thinkpad X1 Carbon Ubuntu 13.10 Gnome-shell

I have used the xmodmap technique, I even made a file called .Xmodmap and put it in the start up commands in the gnome tweak tool, but there are still occasions where the buttons don't perform what I ...
2
votes
0answers
47 views

How to remap key with shift and alt modifier using xmodmap?

I want to put have the following behaviour for key with code 94: 1) by default it is '<' 2) with shift it is '>' 3) with alt it is '|' I only managed to get the default and shift behaviour by ...
0
votes
0answers
31 views

Remap keyboard using xmodmap but when press to change keyboard layout all settings are reset to default

I tried to map key following this guide How do I remap certain keys?. It's work for me. but one problem that i found is when i change keyboard layout (alt+shift) all keys will be reset to default. ...
0
votes
0answers
34 views

problem switching between shift and super key

since my shift key in my keyboard is not functioning properly I wanted to permenantly switch between shift and super key. I've succeeded doing that by using xmodmap command which runs this script: ! ...
0
votes
0answers
127 views

Ubuntu 13.10 resets key map loaded with xmodmap when switching keyboard layout

I'm trying to switch left Ctrl key with CapsLock. I took theese lines from manual to xmodmap: remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = ...
1
vote
1answer
50 views

How to reconfigure keyboard (W and P not functioning correctly) [duplicate]

I was reluctant in asking this question but everything I've researched has led me to a dead end. Shift + w and Shift + p aren't working correctly. So I'm unable to use W and P unless I use the caps ...
1
vote
0answers
37 views

Function keys on the apply keyboard with no root

There is a well-known method on how to make function keys work on Apple keyboards in Ubuntu: echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode However, is there a way to do that with no root? ...
4
votes
2answers
141 views

How do you enable tap-to-click via command line, with `xmodmap`?

You can use this to reverse scroll direction (natural scroll): xmodmap -e "pointer = 1 2 3 5 4 7 6 8 9 10 11 12" You can also set it back again with xmodmap -e "pointer = 1 2 3 4 5 7 6 8 9 10 11 ...
0
votes
1answer
99 views

Running Key Remap Script at Startup

I'm trying to re-map my left Alt key to the Alt Gr and Alt Gr to Left Alt. So far I've been able to do it in terminal, but it never runs it on start up. I've read multiple AskUbuntu questions, but ...
0
votes
0answers
98 views

Ubuntu 13.10 custom keyboard layout

Using Ubuntu 13.10, I want the PrtSc key to work as Menu on Lenovo S430 keyboard. On 13.04 this was possible with modified .Xmodmap file, see Ubuntu 13.04 custom keyboard layout This solution does ...
0
votes
2answers
222 views

How can I set a certain keycode to a key and bind it to the right action?

I have a laptop with Swedish keyboard layout, everything works well with the keyboard. Due to injuries I am using an external ergonomic USB keyboard, this is where I am experiencing difficulties. The ...
0
votes
1answer
60 views

xmodmap,map capslock to control_L,contol to super_L

I usually swap control and capslock, but the old Laptop I am using has no win key which I use as a Super key. So that is why I would like to have to assign Control_L to caplock but control to ...
1
vote
1answer
80 views

Swapping right shift and delete key using xmodmap

I'm unsure how to swap these 2, this is the thought process I had but am unsure how to get it working: remove sh = Shift_R remove dl = Delete keysym Delete = Shift_R keysym Shift_R = Delete add sh ...
1
vote
1answer
65 views

How to map right shift to slash using xmodmap? [duplicate]

How to map Shift_R to slash (/) using xmodmap?
3
votes
2answers
73 views

Keyboard modifier to use <CAPS> with xmodmap

I've just installed a fresh Ubuntu. For the last 2 years I've used a system that allowed me to use my <CAPSLOCK> key as a keyboard modifier to get the character I want. For isntance, if I ...
0
votes
1answer
57 views

How do I get my old xmodmap settings back?

I wanted to disable "paste" action on mouse wheel click, and I use the code below(from this msg: http://askubuntu.com/a/55988); xmodmap -e "pointer = 1 25 3 4 5 6 7 8 9" It worked but also disabled ...
1
vote
1answer
251 views

Setting Xmodmap on login in Lubuntu 13.10

I installed Lubuntu 13.10, and I'm observing a different behavior of xmodmap than in previous versions. I have a ~/.Xmodmap file that maps the Caps Lock key to the Ctrl key. Executing modmap ...
3
votes
1answer
655 views

How do I remap the IJKL keys to arrow keys when I hold Alt down?

I need to remap IJKL to the arrow keys while alt is down. Also, modifiers should still work ie: Shift+Ctrl+Alt+L should map to Shift+Ctrl+RightArrow I was able to get this working using xbindkeys + ...
3
votes
2answers
386 views

Using xmodmap automatically after login

Every time i reboot or start my computer, ubuntu 13.10 looses my xmodmap. I have to type: xmodmap .Xmodmap and the mapping works. How can I have this xmodmap automatically?
1
vote
0answers
2k views

How to remap Fn key combinations (Lenovo G500)

I am running Kubuntu 13.10 on a Lenovo G500 laptop. My question is similar to this one: How can I remap my F keys on my HP laptop? That is to say, my F1-F12 keys are mapped to certain special ...
1
vote
0answers
28 views

Accessing Columns 5-8 of xmodmap

If I do xmodmap -pke, my output starts as follows - keycode 8 = keycode 9 = Escape NoSymbol Escape keycode 10 = 1 exclam 1 exclam exclamdown U2044 exclamdown keycode 11 = 2 at 2 at trademark ...
0
votes
0answers
26 views

Why is the keyboard repeat rate so high for Ctrl, and can I change it to the default rate?

I use my right Ctrl key for Delete by having xmodmap -e "keycode 105 = Delete" in my .bashrc, where 105 is the keycode for my right Ctrl. Today I tried to get it to repeatedly activate when held ...
0
votes
1answer
65 views

Xmodmap configuration

I am trying to configure my keyboard to be able to type German characters without trying to learn another completely different keyboard layout. I found the exact stuff that I need to do to Xmodmap: ! ...
0
votes
0answers
92 views

xsession scripts not getting loaded. I need my a script to run on startup

.xsession, .xprofile, .xinitrc, .xsessionrc... none of these are getting loaded. What is the proper way to get session scripts to work? I've looked around and none of those filenames work on my ...
2
votes
2answers
4k views

UbuntuGNOME 13.10 - Problem: Keyboard layout: Control L and Caps Lock swapped

I have a problem in UbuntuGNOME 13.10 which I didn't had in prior releases: I did a clean install and I don't know if it was already there or if I may have changed something, but my "Control L" and ...
6
votes
3answers
348 views

.xmodmap doesn't work for two layouts

before doing the upgrade to Ubuntu 13.10 I was using two layouts for the Keyboard - GR & DE. I was able to set both in one .xmodmap, means I was able to configure GR and DE. Now, when I create a ...
0
votes
2answers
2k views

How can I reverse natural scrolling on Ubuntu 13.10?

I tried to change the .Xmodmap file as pointer = 1 2 3 4 5 6 7 8 9 10 11 12 but natural scrolling was not changed.
0
votes
0answers
74 views

German Umlauts on US Keyboard and second layout

I want to use the following keyboard layout setup: US layout, modified to support German Umlauts and BG-Bulgarian Phonetic layout. So, the normal setup Standard US, BG works fine. Also, I ...
1
vote
1answer
252 views

Ubuntu 13.04 custom keyboard layout

Using Ubuntu 13.04, I want the PrtSc key to work as Menu on Lenovo S430 keyboard. /usr/bin/xmodmap /home/user/.Xmodmap with modified line keycode 107 = Menu NoSymbol Menu NoSymbol Menu Does not ...
3
votes
1answer
194 views

Change aphostrohe with AltGr + P using xmodmap

I'm struggling with changing one keybind with xmodmap. AltGr + P outputs þ, but I would like to change it to output '. xmodmap -pm outputs: xmodmap: up to 4 keys per modifier, (keycodes in ...
0
votes
0answers
77 views

Map CapsLock key to Return

I want to remap my CapsLock key to work as if it was a Return key. I've created a xmodmap file like this: remove Lock = Caps_Lock keycode 66 = Return If i run it from Terminal: xmodmap ...
0
votes
0answers
53 views

I want to use Xmodmap along with multiple layouts

I usually use 3 keyboard layouts: US, BG, DE. As I need the DE layout only for Umlaute, I found the solution with modifying the keys in ~/.Xmodmap. The command xmodmap ~/.Xmodmap changes my US layout ...
0
votes
0answers
350 views

Remapping Mac Keyboard

I use a Logitech Mac-layout keyboard. I'd like my Option(alt) key to be my super key, left control to be meta, and cmd to be Control. How do I go about doing this? I've fiddled around with the ...
0
votes
0answers
225 views

Bind volume buttons to mouse buttons?

I'm running Ubuntu 13.04 on my Nexus 7 tablet (armhf architecture). There is a known bug with this setup where the mouse's left button gets stuck down, and to resolve it you need to either plug in a ...
0
votes
1answer
185 views

xmodmap reverting periodically

I'm using xmodmap to swap control and command keys on my macbook pro. However, periodically the key revert back to their original state and this is becoming quite annoying. I'm on Ubuntu 13.10 and I ...
0
votes
1answer
527 views

How to apply Xmodmap permanently

I had to make some changes to the xmodmap in my home directory. When i execute xmodmap ./.Xmodmap everthing works as expected. But i can't figure out how to apply this permanently. I tried to add it ...
0
votes
0answers
81 views

L75D-A7280 Xmodmap & xev

Many of my special keys don't work. Some keys don't register with xev. Does an Xmodmap exist for a Toshiba Satellite L75D-A7280? If not, is there a close alternative? If not, how can I get some ...
0
votes
0answers
54 views

Re-mapping AltGr for navigation

I want to re-map AltGr so I can navigate without having to use the arrow keys. AltGr + l = ← AltGr + p = ↑ etc... I've looked around and I can't find any examples that resembles what I want to do. ...
8
votes
2answers
2k views

Permanent xmodmap in Ubuntu 13.04

I cannot make xmodmap run on login in Ubuntu 13.04. I have searched around, including in askubuntu and all answers I found do not work. I have a file named .Xmodmap in my home folder which contains ...
2
votes
2answers
467 views

Set Context Menu key to function as Right Control

Dell notebooks in Brazil and possibly other countries no longer ship with a right control key. This is bad for ergonomics, so I would like to set the context menu key to function as right control. ...
0
votes
0answers
62 views

Remapped Control and Super are not respected by Unity

I try to switch my left Control with left Super. I use xmodmap and it works, except that Unity seems to not respect the change. I guess it somehow bypasses the layer which xmodmap is modifying. ...
0
votes
1answer
40 views

Remap dead_diaresis(?) to to CTRL

I have some problem with my left little finger. So I'm trying to remap the key which looks like this: with the CTRL-button. That part I managed. Now I want to place that key on the caps lock key ...
0
votes
1answer
141 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 ...