Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xmodmap]

xmodmap is a tool for manipulating keymaps and pointer button mappings in the Xorg environment.

0
votes
0answers
32 views

Using CapsLock as a Function key

I want to do 2 things: Disable CapsLock key so that pressing it doesn't toggle CapsLock. Be able to set up custom combinations with CapsLock like: CapsLock + j to map to Down key CapsLock + k to map ...
3
votes
0answers
26 views

setxkbmap conflicting with xmodmap

So initially I had the following in my ~/.Xmodmap which mapped CapsLock+HJKL to left/down/up/right like in vim: keycode 66 = Mode_switch keysym h = h H Left keysym j = j J Down keysym k = k K Up ...
1
vote
0answers
40 views

Change Scan Code of Keys

In Windows I use sharpkeys to remap keys. On Mac I use Karabiner Elements to remap keys. Is there a preferably built in way to remap keys based on scan code? The advantage of this is that VirtualBox,...
3
votes
1answer
204 views

How to know what is super key?

I have this output of xmodmap command: shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control Control_L (0x25), Caps_Lock (0x42), Control_R (0x69) mod1 Alt_L (...
1
vote
0answers
57 views

xmodmap: Super modifier negates Mode_switch modifier when pressed together

Running Manjaro with i3wm. I mapped my Caps key to Mode_switch modifier with xmodmap. I am using it to turn WASD into arrow keys, and a few other combinations. Pressing Caps+W/A/S/D works as ...
1
vote
1answer
29 views

xmodmap: remapped Control_L not working for copying and pasting

After spending hours, I found that xmodmap can be used to remap / key to Left Control key. I used following command: $ xmodmap -e "keycode 94 = Control_L NoSymbol Control_L" Using xev, I find that ...
1
vote
0answers
55 views

Why Tab can't be modified with ISO_Level3_Shift

I am using a 40 key keyboard called daisy, I want to have a consistent layout of all my keyboards. The tab can't modified to other keys is kind a waste of resources. The relevant part in .Xmodmap is: ...
1
vote
0answers
147 views

How to alter level 3 meaning of keys with XKB

I had a neat little hack to get German "Umlaute" on a US ANSI keyboard with XModap. When I hold Caps-Lock, I get Umlaute in the places where they are on a German keyboard. Here my .Xmodmap file ...
0
votes
0answers
87 views

xmodmap remap only works sometimes (CapsLock <-> Esc) [Gnome terminal / xterm]

I have the following at the end of my ~/.bashrc file for convenience while using vim: if [[ -z "$XTERM_VERSION" ]] then ...
0
votes
0answers
35 views

xterm and Prior key remap with xmodmap

Within Xorg I try to remap Prior key to AltGr-i with following code: xmodmap -e 'keycode 31 = i I i I Prior Prior rightarrow idotless' this works for graphical programs and rxvt as expected. But ...
2
votes
0answers
65 views

xmodmap key bindings reset when I open a new tab in the shell

When I open a shell in ranger with shift-s, open vim and then open a shell with :sh or open a new shell tab with ctrl-shift-t, my xmodmap keybindings (swapped caps lock and escape keys) are reset. ...
1
vote
1answer
19 views

xmodmap - L_Alt + ijkl as arrows (polish programmers layout)

I've created following xmodmap file: keycode 64 = Mode_switch (right Alt key) keysym j = j J Left keysym l = l L Right keysym i = i I Up keysym k = k K Down it works almost great, but. In polish ...
0
votes
1answer
155 views

how to load an xmodmap configuration file using .xinitrc

I am trying to figure out how to use my .xinitrc file to load an xmodmap configuration file. Although this seems to be a popular problem around the internet, I can't seem to get it working. I am ...
0
votes
1answer
47 views

How do I mapping Ctrl+Middle to Right-Click in X?

How do I mapping Ctrl+Middle to Right-Click in X? I aware "window manager"+"xdotool" maybe is a way,but such things now working for window manager itself and also possible more unexpected behavior.
0
votes
1answer
165 views

xmodmap not mapping Ctrl to Super except in Ubuntu's Keyboard Shortcuts

Post-mortem update: After wrestling with xmodmap for the better part of the morning, I found this answer perfectly solves the issue. The reason, I believe, is that xmodmap is not as powerful as xkb, ...
0
votes
1answer
29 views

Execute a command if F+J keys are pressed

What would I need to do if I wanted to execute: chromium & by pressing F+J ? Preferred requirements: Globally accessible across Desktop Environment Independent of terminal focus or not Without ...
0
votes
0answers
23 views

How shall I convert a modifier map into an xmodmap expression?

The output of xmodmap -pke provides a keymap table which contains keycode 133 = Super_L NoSymbol Super_L keycode 206 = NoSymbol Super_L NoSymbol Super_L The output of xmodmap -pm provides a modifier ...
0
votes
0answers
28 views

xmodmap persisting after logout

I have reassigned my capslock key to work as an ESC -- makes it way easier for vim -- using xmodmap ~/.speedswapper&! However, when I log out (closing the laptop's lid, for example), that ...
1
vote
0answers
57 views

Fully remap a key to work as right alt

I'm using Linux Mint 18.3. My keyboard has a nonsensical key setup where I have an extra \ key right before the right alt, and I keep using it by mistake. Since I don't need the \ key there at all, I ...
2
votes
0answers
118 views

Turning the Escape key into a modifier that still acts as Escape when tapped

I use a tiling window manager (xMonad at the moment), and due to this I need a key that acts as the ‘control key’ for window management. Whenever I use a keyboard with Windows/Super/Mod4 keys, I use ...
0
votes
1answer
45 views

XTerm*metaSendsEscape broken when Alt_R is mod4

I can't get xterm to behave correctly re: the metaSendsEscape setting. When I have this as my Xmodmap, the setting doesn't work (i.e., xterm ignores the Alt keys even when metaSendsEscape is enabled):...
0
votes
0answers
92 views

xmodmap binding for function keys not working

I have a chromebook with no FN key, and I want to map the top row which is picked up as function keys, to be multimedia keys normally, and function keys with a modifier. So i'm trying to use shift as ...
0
votes
0answers
51 views

Advanced key mappings in linux

I am using manjaro i3 and am looking into revamping some of the key mappings I have made. Currently I am using xcape, xmodmap, and setxkbmap commands to remap the following keys: caps to contol when ...
0
votes
0answers
46 views

How to change or add new shortcuts for making cursor move to jump word in Ubuntu

OS : Ubuntu 16.04LTS Sometimes i feel ill at ease when i press the button for moving cursor like [Arrow], [End] or something like that. So i added new key combinations using the Xmodmap. [~/.Xmodmap]...
7
votes
1answer
339 views

How to map extra keys in linux?

I'm running archlinux on my thinkpad x1 carbon 5th gen which has some extra keys. These keys currently do nothing and I'd like to remap them. Firstly, I tried getting their keycodes via xev but they ...
2
votes
0answers
223 views

Mapping key using xmodmap changes multiple keys

I am running Ubuntu server 16.04. Not sure if this matters, but I am forwarding the screen to a browser using XPRA. All works reasonably well except for a few pesky key combinations. I am using a GB ...
1
vote
1answer
72 views

AltGr special character binding

Is there a way to bind AltGr-modifiers to other special characters? I use a UK Macintosh keyboard, but need Norwegian letters. I can access ø and æ with AltGr-o and AltGr-a, but there is no å: /ɔːˀ/. ...
0
votes
1answer
35 views

Rebound shift key still acts as shift key

I have rebound my right shift key (keycode 62) to act as the up arrow by replacing Shift_R in its keysym with Up: $ xmodmap -e "keycode 62 = Up NoSymbol Up" However when using the key, some ...
1
vote
0answers
38 views

How can I remap Ctrl_Left + button to one action, and Ctrl_Right + button to another?

In my particular example, I want to be able to remap Control_left + n to output LeftArrow, but also to Control_right + n to output Return. How can I do that? I red through xmodmap man, so as xbinkeys, ...
0
votes
1answer
156 views

Running xmodmap trough systemd

I have a script that remaps escape to caps lock. I normally call the script manually with xmodmap /home/myusername/.Xmodmap; .Xmodmap is a file that contains: remove Lock = Caps_Lock keysym Escape =...
1
vote
0answers
84 views

xmodmap Remap Left Mouse to Right Mouse

What I've tried: xmodmap -e "pointer = 3 2 3" xmodmap -e "LeftMouse = RightMouse" What am I doing wrong?
1
vote
2answers
944 views

`xmodmap` not working on startup

I recently installed Debian 9 and inserted my usual ~/.Xmodmap file and added xmodmap ~/.Xmodmap to my .xsession. To my disappointment this didn't actually work. For reference, I run i3 from startx ...
1
vote
0answers
328 views

Remapping Caps Lock to left control, and left control to Super key using xmodmap

I've been checking out other questions regarding xmodmap, but couldn't find a solution to my situation. I got an old IBM keyboard that doesn't have a Windows/super key, and would like to remap the ...
0
votes
0answers
231 views

xmodmap is not activated anymore

I am using Debian/testing and Gnome Shell 3.22.3. I previously had a working xmodmap file which was working but after upgrade my system, Xmodmap is not working. ( I activate Xmodmap from terminal by ...
0
votes
1answer
73 views

keyboard remap has killed keyboard

Following a post at fascinatingcaptain, I tried remapping F1 to the g key, as my g key has bitten the dust due to mechanical reasons. I added an entry: key <FK01> {g} ; (getting the "g" by ...
0
votes
0answers
65 views

xmodmap breaks my setup when I run it a second time

I have a .xmodmap file stored in my home directory ( I am using Debian 9.0 and Gnome). When I activate with a command $xmodmap $HOME/.Xmodmap in the terminal, everything is fine. But when I enter ...
2
votes
0answers
97 views

Modify only one keyboard layer in .xmodmap

My default keyboard layout looks like this $ xmodkeymap -pke ... keycode 38 = a A a A ae AE ae AE a A ae AE ... I want to modify the part of the layout where mode_switch is pressed, that is, ...
1
vote
0answers
215 views

Map ACPI events to X keys (or to custom commands)

Some of the multimedia keys on my Lenovo X1 Carbon aren't recognized by xev. Each time I press the "volume down" key, for example, I get an output that looks like: FocusOut event, serial 34, ...
1
vote
1answer
74 views

Latching group in xmodmap / core protocol mappings (XChangeKeyboardMapping())

This question should probably go to retrocomputing since people should use XKB, but I am really curious how did they latch group switching with xmodmap / XChangeKeyboardMapping(). I read xmodmap man ...
1
vote
0answers
179 views

Swap touchpad buttons independently of the touchpad

I use a Lenovo X250 with Debian. I have a touchpad with 3 physical buttons on top. Using xev I can see that these correspond to buttons 1, 2, and 3. Additionally, the touchpad itself can be pressed....
1
vote
2answers
800 views

F1-F12 keys don't work

I bought compact keyboard. F1 = Fn + 1 and F2 = Fn + 2 ... But F1-F12 keys don't work on my Ubuntu 16.04. For example F1 makes brightness up. I checked keycodes of F1-F12 keys and they are invalid. ...
1
vote
0answers
57 views

How to translate modifier + key(control + space) into another modifier(shift)?

I'm using Ubuntu 16.04. I've tried xmodmap, xbindkeys + xdotool with no luck. Here's an example solution that I've tried with xmodmap. xmodmap -e "keycode 65 control = space Shift_L"
1
vote
1answer
254 views

xmodmap not working for Alt-a

So, I am trying to map Alt-A to the right arrow. I followed 'xev and xmodmap' approach described here and came up with this: xmodmap -e "keycode 38 mod1 = Right" which fails miserably: when I press ...
1
vote
1answer
117 views

Terminal does not accept some typed-in unicode characters

I need to troubleshoot why typing in some unicode characters in my terminal won’t work. I use a non-qwerty keyboard layout (namely neo) which allows me to directly type in unicode characters such as ...
4
votes
1answer
839 views

What files does the Gnome Tweak Tool act on (when changing the Typing settings)?

I've saved the output of $ xmodmap -pke in ~/.map1. Then, I have changed some settings through the Gnome Tweak Tool (say, to keep it simple, I swapped Esc and Caps Lock). Then I again saved the ...
0
votes
1answer
131 views

Map KEY_LEFTSHIFT key in xmodmap

At the moment. on Press of left shift key it works differently. For example on press on shift(left) + a display '-' rather than 'A'. Shift right works as expected. I have noticed "F1" behave as shift ...
1
vote
0answers
213 views

Altering keyboard layout on plugging in or out

I use an external keyboard with my laptop and a script to change the keyboard layout depending on whether the keyboard is plugged in. This works fine, but I find it shouldn't be necessary to run the ...
1
vote
0answers
49 views

xmodmap and modifier

I wanted to remap Ctrl-N/Ctrl-P to Up and Down keys. And I found this post and did something like this: ! add Mode_switch keycode 66 = NoSymbol NoSymbol keycode 66 = Mode_switch keycode 57 = n N ...
2
votes
2answers
98 views

Trying to have a command start on boot, but not working

I have been fighting with the problem for three days now. I have a computer that I am setting up for a friend and I have Zorin OS 12 on it since it was the first thing that came to mind that was ...
1
vote
1answer
144 views

Linux Mint 18: xmodmap and third level don't work on firefox and texstudio

I'm having problems with keyboard input on two apps: firefox 50.1 and TeXstudio 2.10.8. I recently discovered how to enable two keys as 3rd level chooser in Xubuntu. The same works for Linux Mint, ...