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

1
vote
0answers
18 views

Lenovo Mice N700 mapping

I've got a Lenovo Mice N700, which was built for Windows 8. It works perfectly on Ubuntu (16.04), but has 2 flaws: swipes. On Windows 8, they were supposed to trigger actions just like ...
0
votes
0answers
16 views

Map ctrl+key different from typing key in xkb or xmodmap

Is it possible to map ctrl+key different from regular typing key in linux? I have done it in windows with MSKLC but can't figure out how to do it in linux. E.g. I want to type dvorak but have regular ...
0
votes
1answer
258 views

How persist a remap keys in Ubuntu 16.04?

This is working for the current session: costales@dev:~/Desktop$ xmodmap -e "keycode 166 = less" costales@dev:~/Desktop$ xmodmap -e "keycode 167 = greater" Then I created this config file: ...
2
votes
1answer
25 views

xmodmap: where are its local settings stored?

I ran xmodmap -e "keysym Menu = Super_L" and could reverse it using xmodmap -e "keycode 135 = Menu" But I want to know where changes made by running these particular commands are stored. I don't ...
0
votes
0answers
15 views

Help with re-assigning a key on boot

I have a broken enter key on my laptop, so instead of replacing the keyboard I am re-assigning the return key by executing this command in the terminal: xmodmap -e "keycode 62 = Return" Keycode 62 ...
0
votes
1answer
46 views

Configuring keyboard hotkeys with same scancodes and different keysyms

I have a bluetooth keyboard Samsung bkb10. It is keyboard for andoind mainly, so it does not have alt, super(winkey), f1-f12, menu, but has lots of hotkeys(most of them work nice under linux). But ...
0
votes
0answers
16 views

xmodmap makes ctrl and alt modifiers stop working

I'm trying to remap my numeric keypad arrows to function in the same way as the regular arrows, like this: xmodmap -e "keycode 80 = Up NoSymbol Up" After I run the above command, Ctrl and Alt ...
1
vote
0answers
35 views

Using grp:caps_switch with xkbmap for custom keyboard shortcuts

I want I J K L to function as arrow keys when CapsLock is pressed down. To do this, I pasted the following to the bottom of the /usr/shar/X11/xkb/symbols/pc file: partial partial alphanumeric_keys ...
0
votes
0answers
14 views

Xubuntu: Trying to change the Home key from registering as ^[OH to ^[[1~

Running Xubuntu 14.04 LTS 3 on a Thinkpad. Bash shell Issue: When I run "cat" at the command line, and press the Home key, I'm seeing a ^[OH returned to the screen. I'm trying to change this to ...
0
votes
0answers
36 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
65 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
17 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
82 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
46 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
51 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
69 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
200 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
75 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
61 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
119 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
72 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
128 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
75 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
105 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
272 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
54 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
34 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
29 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
59 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
267 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 ...
1
vote
0answers
325 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
107 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
176 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
1answer
101 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
320 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
269 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
196 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
97 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
252 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
114 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
493 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 ...
1
vote
1answer
668 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
2k 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
529 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
515 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
863 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
583 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 ...