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
9 views

Remape left-ctrl to left-alt in ubuntu 15.10

I was searching through askubuntu for this. I found that Xmodmap dont work for Ubuntu 14 or higher version. I tried using gnome-tweak-tool, but its not working. Graphic interface of gnome-tweak-tool ...
0
votes
2answers
37 views

How to remap keyboard permanently - Letters, not CapsLock or Num Lk [duplicate]

This is what i do xmodmap -e "keycode 135 = g" but i lost it everytime i shutdown/restart my computer. I use ubuntu 14.04. Please someone can help me to make this change be permanent? Thanks!
0
votes
0answers
12 views

ubuntu lenovo twist super_l tablet button keydown not working correcty

I have a Lenovo twist running Ubuntu 15.04 and i have remapped the super_L key on the monitor to control_l using xmodmap. but it's not working properly. when i look at it in xev i see that the ...
1
vote
0answers
54 views

How to map AltGr to Ctrl+Alt

I would like to map the AltGr key on my keyboard to produce Ctrl+Alt. I am aware of xkb and xmodmap. As far as I could tell, however, using those you can only map from key combinations onto single ...
0
votes
0answers
25 views

In KDE, multimedia keyboard keys stop working after Xmodmap

I use Kubuntu and Apple Aluminium Keyboard. It has Fx keys which double as multimedia keys when pressed with Fn. Out of the box it works fine with the exception, that < and > symbols do not match ...
1
vote
0answers
40 views

What is the use of modifier keys in Xmodmap?

I was following this question to do some remapping. In the question, there is: Additional information: The sequence of these mappings is Key, Shift+Key, mode_switch+Key, mode_switch+Shift+Key, ...
0
votes
0answers
25 views

How to emulate scroll wheell with keyboard + mouse move?

What would be the commands that would make that Ctrl + Mouse Up to have the same effect as Mouse Wheel Up?
7
votes
1answer
137 views

Where to put xmodmap command execution for remapping CapsLock to Esc?

I am a vim user and I use Esc frequently so I mapped Caps Lock to Esc. I currently have this in my ~/.profile: # remap Esc to Caps Lock xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' The ...
2
votes
2answers
54 views

How can I use Caps Lock to capitalize semi-colon?

I can't print colon using the Shift+;. So, I thought it was better to use the colon just like we use the Caps Lock for capitalization of letters. In other words: I want Caps Lock to work for all keys ...
1
vote
0answers
36 views

xev Alt key change, but Alt key doesn't work

I want to chage special key alt, crtl, hanja(in the multy language) because I Used ibus, I try to change my keymap by Xkb not xmap. after searching on internet I just to exchange my keycode on ...
1
vote
1answer
90 views

Down arrow, Home, End, Pipe, Insert, Print Screen buttons not working in Ubuntu 12.04.5 LTS

Down arrow key, Pipe button, Print Screen, Home, End, Insert buttons not working in Ubuntu 12.04.5 LTS. Same happened with Scroll Lock key too. But I fixed it up using: xmodmap -e 'add mod3 = ...
2
votes
1answer
49 views

How to make XF86Explorer my new Super key

I know I need xmodmap and have been playing around with it but can't find the right configuration. ➜ ~ xmodmap xmodmap: up to 3 keys per modifier, (keycodes in parentheses): shift Shift_L ...
0
votes
1answer
61 views

Google Chrome ignores XmodMap key mapping

My laptop Down arrow key is stuck on, so I have used Xmodmap to remove the mapping of that key with the following command: xmodmap .Xmodmap The contents of my .Xmodmap file is just the single ...
0
votes
1answer
51 views

unable to disable super key using xmodmap

I'm using xmodmap to disable the super key, but when i press some keys i.e. (M,A) the gnome shortcut for those keys (super+M, super+A) fires up, even without press the super key. looks like the ...
3
votes
0answers
96 views

Multiple keycodes not working at the same time

I'm using xubuntu 14.04. I'm having a problem when pressing some keybinds (specifically with some keycodes). Thus, show you the result of xev when pressing first Alt_R and then Alt_L. KeyPress event, ...
3
votes
1answer
137 views

How do I remap the caps lock key to the backspace key?

I have grown very comfortable to my Colemak keyboard layout (my typing speed has doubled since I started using it). My only problem with it is that there is no caps lock key because under this layout ...
0
votes
0answers
39 views

How can i modify AltGr with xmodmap?

Hi i have a little problem with the order of two keys in my keyboard, instead of being [AltGr] +[<>] like in most of the keyboards in my country, my keyboard comes with the keys this way: [<>] + ...
0
votes
0answers
26 views

Remap SHIFT+Left Arrow to ParenLeft

I'm looking to use xmodmap to change Shift+left arrow to parenleft and Shift+right arrow to parenright. I used xmodmap -e 'keycode 113 = parenleft' but that caused every action on the left arrow to ...
0
votes
0answers
22 views

Trying to set Alt Gr+Keycode 50 to backslash using XModMap

I've just started running Linux Mint, However I'm using a slightly different keyboard hardware wise. It had a multitude of issues in the start, such as Shift being mapped wrongly, atastrophe/asterisk ...
1
vote
0answers
40 views

How to swap Caps with Left Control and change layouts using Caps Lock+Swith (grp:shift_caps_switch)

I already tried a lot of methods for changing this and none of those worked. I used xmodmap and setxkbkey but it both ways there's always problem with setting it. However, using those methods don't ...
1
vote
2answers
248 views

Xmodmap - how do I use ctrl as a modifier?

Basic keyboard layout: 1 → 1 Shift+1 → ! I would like: Ctrl+1 → ¹. (Superscript one character). The following code allows me to type ¹, but only with Shift+1: xmodmap -e "keycode ...
0
votes
0answers
153 views

Special buttons on Lenovo X200 Tablet not recognized by xev

My Lenovo X200 Tablet has four buttons just below the display (flip, rotate, hold, full) which should map to keycode 162 = XF86LaunchA keycode 161 = XF86LaunchB keycode 149 = XF86LaunchC according ...
1
vote
0answers
253 views

How to remap the right Alt key to perform the Alt key function (within programmer dvorak)?

I use the programmer Dvorak keyboard and Ubuntu changed the layout between 13.04 and 14.04 (did not use 13.10). They changed the right Alt to be something else, not even sure what it is. ...
2
votes
2answers
84 views

Use Alt_L as Space

My old laptop's keyboard has a dead Space key. I have found that with the commands: xmodmap -e "keysym Alt_L = Space" xmodmap -e "keysym Super_L = Alt_L" I can do the job,as I have to map the ...
5
votes
2answers
161 views

Xmodmap unlisted characters. Is there a way to add them?

I would like to type some specific characters after using xmodmap to map them. For example, the ⅒ character (Numeric value: 0x2152). I would like to change a keyboard button to type ⅒ like so ...
0
votes
0answers
117 views

How to set Super_R to mod3?

My current situation looks like this: $ xmodmap -pm xmodmap: up to 3 keys per modifier, (keycodes in parentheses): shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control ...
0
votes
0answers
57 views

How do I configure xmodmap so ; becomes a dead key and ;a outputs @?

How do I configure xmodmap so ; becomes a dead key and ;a outputs @? That is, when I press the key ; on my keyboard, nothing is outputted - when I press ; followed by a, the character @ is outputted.
0
votes
0answers
33 views

How can I specify mouse button map for different applictions

I'm using a mouse having many buttons. There is a software in Windows named X-Mouse Button Control that can specify mouse button map for different applictions. But I can't specify appliction using ...
0
votes
0answers
28 views

Remap XF86ScrollUp to Different Key

I have been trying to change the page up key without any success. What might I be doing wrong? xmodmap -e "keycode 38 = XF86ScrollUp"
0
votes
0answers
209 views

xmodmap: How to set Mode_switch to Ctrl+Alt?

When using xmodmap, is it possible to map the Mode_switch to Ctrl+Alt? I am trying to map Alt+Ctrl+ u to ü and Alt+Ctrl+Shift+u to Ü. I have no AltGr on my keyboard (KBC Poker I). I have it down to ...
0
votes
1answer
86 views

Is it possible to run a script on keyboard input language change?

I'm interested in running a script whenever I manually change the input language. This is because my xmodmap is forgotten whenever I change input languages, so a solution to that would also be useful. ...
1
vote
1answer
245 views

Remap a key to the left mouse button

My problem is that I don't know keyname action for Mouse Click. For example I want to remap F1 which keycode is 67 with a mouse click 1 I have to type: xmodmap -e "keycode 67 = ??" What ...
1
vote
2answers
237 views

ibus override my xmodmap

I use xmodmap to swith Ctrl and Alt keys: ~ $> cat .Xmodmap ! ! based on: http://www.emacswiki.org/emacs/SwapControlAltAndCapsLock#toc8 ! ...
1
vote
1answer
181 views

Applying changes made with xmodmap

I'm trying to switch the Ctrl and Command keys using xmodmap, but even though the output of xmodmap -pke shows that the key codes were changed, the keys still perform the original function. This is ...
2
votes
0answers
81 views

Reverse Scrolling with xkb

Currently I'm using Xmodmap to reverse scrolling direction: pointer = 1 2 3 5 4 7 6 8 9 10 11 12 What is the equivalent way to do this with xkb? (or is this possible at all?) I'm evaluating KF5 and ...
8
votes
1answer
244 views

How can I remove a single temporary key mapping without resetting the entire keymap?

So I saw this question the other day. The user's K key was broken and they wanted to map it to Right-Shift. A good answer popped up and I thought I'd test it to see if it worked. I ran: xmodmap -e ...
0
votes
1answer
97 views

remapping k to the right shift button

I have been looking on askubuntu for help, but couldn't find the help I needed, so now I just ask. My k key doesn't work, when pressed, and since its a older laptop, i just wish to remap the k key ...
2
votes
1answer
2k views

Xmodmap remapping modifiers not working?

I am using a new keyboard, and trying to set it up to mimic the keyboard on my laptop. I'm using xmodmap on Ubuntu 14.04, and can't get it to work. I cleared the modifier keys like so : xmodmap -e ...
3
votes
0answers
399 views

Howto to set AltGr key with xmodmap

I use a us-intl with "AltGr dead keys" layout and the option to switch Alt and Win key. Nice, but my AltGr does not work. The key I want to use for AltGr has keycode 134 (found out using xev). So I ...
2
votes
2answers
2k views

Trying to map <Ctrl>+<hjkl> to <Left Down Up Right> globally (Vim-like arrow keys) with xmodmap

I am trying to map Ctrl+H,J,K,L to arrow keys Left,Down,Up,Right, respectively, on Ubuntu OS (globally, not inside Vim). I've attempted the solution posted here, but the modifier commands are not ...
2
votes
1answer
618 views

Using Xmodmap, my shift lock now acts as both a shift lock and a compose key. I just want it to work as a compose key. What can I do?

I have two Xmodmap files. First one: keycode 8 = keycode 9 = Escape NoSymbol Escape keycode 10 = ampersand 1 ampersand 1 bar exclamdown bar keycode 11 = eacute 2 eacute 2 at oneeighth at ...
5
votes
1answer
1k views

Using setxkbmap for a simple remap (similar to xmodmap)

I've faced some issues after remapping keyboard with xmodmap: settings get reset randomly after 2-20 minutes after applying. Googled it but no help: something resets them, but all mentions apply to ...
0
votes
1answer
436 views

xmodmap pointer setting doesn't affect all applications

I have a laptop designed for windows 8 and running ubuntu 14.04. Because it is designed for windows 8, the touchpad is backwards. The scroll bars on the side and top are reversed so that it feels like ...
1
vote
0answers
448 views

How to use SLEEP, WAKE and POWER keys as media keys (VolumeUp , Volume Down etc) in Ubuntu 14.04?

I have an usb keyboard with SLEEP, WAKE and POWER keys but no media keys. In Ubuntu 12.04 i used xmodmap to remap this keys as XF86AudioMute, XF86AudioLowerVolume and XF86AudioRaiseVolume. This is how ...
1
vote
3answers
742 views

How to map <modifier> + hjkl to arrow key functionality?

I've been getting so used to vim's hjkl for moving around recently, and find myself wanting to use them right after alt tabbing out of vim. What would be the best way to map fn + h/j/k/l to ...
1
vote
1answer
462 views

Left Alt combinations with xmodmap

How I can change Alt+symbol to some other ? For example, I changed semi-colon like this: keycode 47 = BackSpace colon semicolon colon semicolon colon But I want Alt+; to produce ;.
1
vote
2answers
9k views

How to run command at startup? [duplicate]

The Return key in my keyboard is broken, so I have chosen to make my PgDn key to act like the Return key. Now I learned how to do this using 'xmodmap'. The command I have to run is: xmodmap -e ...
2
votes
0answers
555 views

enable special keys in lubuntu 14.04

I've done a lot of reading and cannot find a simple answer to what seems like it should be a simple question. How do I define the functions of the extra keys such as the "my computer" and "web ...
6
votes
1answer
695 views

Unable to get xmodmap working after suspend

I am using Ubuntu 14.04. I have a custom Xmodmap keyboard layout. However, when I resume after suspend, the layout is gone. I have tried all things which were mentioned in the answers to this ...
1
vote
0answers
25 views

xmodmap loose custom settinfs in some cases

All. I'm remap Cmd key behaviour to act like a Ctrl with xmodmap. All works fine, but in some cases xmodmap loose my custom settings and return to defaults. I.e. when i'm pressing Ctrl-Space (change ...