Questions tagged [xmodmap]

xmodmap is a utility for X that is often used to remap keys and mouse buttons to whatever a user desires.

Filter by
Sorted by
Tagged with
0
votes
0answers
195 views

How to map ctrl+alt+h to ctrl+left using xmodmap or xkb?

Like the title said, I've been trying for hours and days, but can't get it to work. Initially I wanted alt+h/j/k/l to map to alt+left/down/up/right with xmodmap keycode 64 = NoSymbol NoSymbol keycode ...
0
votes
1answer
8 views

Remap already bound keys with xmodmap

I recently bought a 17" LG Gram and I want to remap some of the keys to be more like my 80% keyboard. Using a tiling window manager (qtile), it's nice to have a Super key on both the left and ...
0
votes
1answer
18 views

How to map the escape sequence of Gnu-screen to an arbitary key remapped with xmodmap?

so i remapped some keys using xmodmap, specifically i remapped one key to the ±-sign. I want to have this key as my escape for GNU screen. I tried adding the following lines in my .screenrc: escape ± ...
0
votes
0answers
22 views

Remapped super key doesn't act as super button

I have an issue with remapping my Bluetooth keyboard super key. After connecting my Lenovo BKC510 keyboard over Bluetooth to my Lenovo yoga 500-14ISK laptop, running fedora 30, I realized that the ...
0
votes
0answers
19 views

Map AltGr to SuperR while keeping SuperL as where it is with setxkbmap?

It really shouldn't be this difficult, but it just seems impossible to map the right alt or AltGr to Super key, while keeping the other keys where they are. I tried xmodmap, but it brings problems, ...
0
votes
1answer
36 views

Make left-shift only capitalize certain keys, right-shift the rest

I use Arch Linux and xmodmap for customizing keys. I'm in the process of learning Touch Typing. Now for my typing behavior, I exclusively use left-shift for capitalization. I would like to integrate ...
1
vote
2answers
686 views

xmodmap - remap Caps_Lock to Escape and Shift+Caps_Lock to Caps_Lock

I'm experiencing a strange behavior with xmodmap. I want to remap Caps_Lock so it acts as Escape and Shift+Caps_Lock so it acts as Caps_Lock. In my ~/.Xmodmap i tried every possible combination of the ...
0
votes
0answers
17 views

Is it possible to map °7 to { on Linux system wide?

On a German keyboard, typing { is pretty cumbersome. So in VIM, I mapped the key sequence "°7" to "{" by having this line in my vimrc: imap ⁷ { This turned out to be super useful. Is there a way to ...
0
votes
1answer
47 views

Xmodmap fails add clearing modifiers

I try to make my escape key behave as an alt modifier (and later add back the escape functionality with xcape), however I can't get xmodmap to make my escape key have this alt function. After ...
1
vote
0answers
31 views

xkb: Keymapping reverts backs with a Java App

I am using a xkbcomp keyboard config for a second keyboard, but I am pretty sure it is reverting back to the default setup with java application. IE: Minecraft. Whenever I try to use the gamepad "the ...
0
votes
1answer
541 views

How to make Alt+Shift act like AltGr with xmodmap?

I just swapped from Windows and I was used to using Alt+Shift to type special characters such as |@#~½¬from the number row, but it only works with Alt Gr on Ubuntu. It's not in the settings either so ...
0
votes
1answer
362 views

Xmodmap error on setting new mod key

I try to use the cap lock key as mod key. I have this .Xmodmap: clear lock clear mod2 keycode 66 = Hyper_L add mod2 = Hyper_L and this xmodmap -pm: shift Shift_L (0x32), Shift_R (0x3e) ...
5
votes
2answers
4k views

How to swap control and function key on Lenovo external keyboard?

I use a Lenovo ThinkPad (X220i) and like all ThinkPad users, I swapped "control" and "function" in the BIOS. Now I bought an external USB keyboard by Lenovo with a similar keyboard layout as the ...
8
votes
2answers
4k views

xmodmap how to remap keys and disable the original ones?

I'm considering getting a 60% keyboard and want to try out working with that layout before buying the actual keyboard. I'm trying to map arrow keys to caps lock + ijkl and disable the real arrow keys....
0
votes
1answer
539 views

Non-toggling caps lock with xkmodmap or xkb?

Is there a way to configure the caps lock button so it's not toggling? That is, so that it only applies the caps lock state while held down, and when released everything reverts to normal. The ...
3
votes
1answer
2k views

Cannot remap keys with xmodmap in Fedora 26

I want to remap the caps lock key with the shift lock key in order to be able to write special characters instead of numbers when the shift lock key is activated. Unfortunately, I cannot get this to ...
0
votes
1answer
368 views

Keybinding on Lubuntu

I would like to bind few keys to the characters "\" "{" "}" on my 32 bits Lubuntu Netbook. I was able to do it using Xmodmap : xmodmap -e "keycode 135 = backslash slash" xmodmap -e "keycode 48 = ...
0
votes
1answer
617 views

Disable ESC key

the ESC key on my computer is bad and causes the computer to misbehave. i tried disabling by using xmodmap -e 'keycode 9=' But resulted in errors xmodmap: commandline:1: bad keycode input ...
0
votes
0answers
418 views

Caps+Shift+hjkl as arrow keys

I currently map caps to CTRL-L using the following .Xmodmap: clear lock clear control keycode 66 = Control_L add control = Control_L Control_R I'd like to additionally map Caps+Shift+HJKL to be ...
9
votes
3answers
5k views

How to remap CAPS LOCK on Wayland?

Before Fedora switched to Wayland I used this .Xmodmap file to use my CapsLock Key to reach German Umlauts: keycode 66 = Mode_switch Multi_key keycode 20 = minus underscore ssharp keycode 34 = ...
1
vote
1answer
344 views

Rebind windows key of microsoft sculpt ergo mouse

I'm trying to rebind the windows key of the microsoft sculpt ergo mouse under linux to backward navigatiom. Some rebinding works using xmodmap -e "keycode 134 = Backslash" but rebinding to ...
0
votes
3answers
402 views

fedora 25 map winkey into control

This is the result of xmodmap -pm: control Control_L (0x25), Control_L (0x42), Control_R (0x69), Control_L (0x85), Control_R (0x86) mod4 Super_L (0xce), Hyper_L (0xcf) I have this ....
1
vote
1answer
90 views

How can I map “Shift + (A number)” to “(Another number)” using xmodmap?

I want to map my keys so that pressing Shift + 1 produces a 6, Shift + 2produces a 7, etc. to make it possible to type all numbers using only my left hand. When I try xmodmap -e "keycode 10 Shift_L = ...
0
votes
0answers
469 views

xmodmap: Map numpad to one set of keycodes, Shift-numpad to some other set of keycodes, detected by Blender

I am able to map my numpad with, for example, an ~./Xmodmap file like this: keycode 87 = XF86Launch1 keycode 88 = XF86Launch2 keycode 89 = XF86Launch3 keycode 83 = XF86Launch4 keycode 84 = ...
7
votes
1answer
2k views

What is the function of the modifier keys in xmodmap?

When I run xmodmap, I get something like this shift shift_l (0x32), shift_r (0x3e) lock control control_l (0x25), control_l (0x42), control_r (0x69) mod1 alt_l (0x40), ...
1
vote
0answers
74 views

Remap Escape = Caps_Lock, Caps_Lock = Ctrl_L and Ctrl_L = Caps_Lock

I would like to swap keys using xmodmap as in the title. I would like the useless capslock to be bind to the escape key, the escape function to be bind to the bottom left control to and the ctrl to be ...
0
votes
1answer
347 views

How do I map Alt+Space in Linux with xmodmap?

I am trying to map Alt+Space to Escape in Puppy Linux. Specifically, this is for vim, but I could not get it to work there. So, I thought I better try to do it globally, but I have no idea what is the ...
1
vote
0answers
93 views

Shift Key won't work with F1,F2 etc. keys in gnome2. What could be the reason?

I have a vnc session with gnome2 desktop. The following are couple of examples where multiple key press working as expected and the last two examples have unexpected results (with F1 & F2). ...
1
vote
0answers
97 views

Map key + mouse click/movement to something on Linux

When I was using OS X, I was able to remap left click + ctrl to right click and cursor movement + shift to scroll in the direction the cursor would be travelling. Is this possible on Linux? Arch ...
1
vote
0answers
195 views

Trying to set Alt Gr+Keycode 50 to backslash

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

xmodmap setting reverted once every few minute for usb keyboard

I have an xmodmap setting that convert CapsLock to control on my laptop, when I am using a usb keyboard, the CapsLock key changes back to its default meaning every once in a few minutes so I need to ...
3
votes
0answers
503 views

How to map space to control and unmap win from Hyper_L using xkb/setxkbmap

I am trying to make my space act as control by default (and as space when tapped by using xcape) and to make capslock act as the only hyper modifier. I have a working configuration for this in xmodmap,...
0
votes
1answer
1k views

tmux and xf86 keys (the 'Fn' key, xf86WakeUp)

I'm interested in hijacking the Fn key on my laptop and using it as the mod key for tmux, but after a bunch of tinkering with xmodmap and tmux.config, I'm not much further along in getting this to ...
2
votes
1answer
278 views

xmodmap: `Shift+CapsLock` -> `Delete` returns error bell

Because CapsLock has the keycode 66 on my English_US keyboard layout, the command xmodmap -e "clear Lock" -e "keycode 66 shift = Delete BackSpace" turns CapsLock into the Delete key and Shift+...
5
votes
4answers
2k views

Disable numlock, preserving mouse button key bindings

I'm having trouble to disable the Numlock key (make the key do nothing, so that the numpad numbers always work) while at the same time mapping extra mouse buttons (at the side of my mouse) to ...
0
votes
2answers
918 views

order of KEYSYM in Xmodmap config file

I try to make some changes in my keyboard configuration with xmodmap. However, when I look at the output of xmodmap -pke I see that some keycodes are binded to 12 KEYSYM, for example, with my french ...
3
votes
1answer
469 views

Remapped keys (with xmodmap) in Linux host stopped working in VirtualBox Windows guest

I've used the following xmodmap script for years to swap my Left Ctrl and Caps Lock keys in Linux: remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = ...
22
votes
2answers
35k views

How to disable a keyboard key in Linux (Ubuntu)?

my keyboard is damaged, the keyboard key [é] is always pressed and it prevents me from working. On windows I found the software sharpkey to disable the [é] button but on Ubuntu I can't found no ...
1
vote
2answers
197 views

How to add additional control key?

I am using xkb to add an additional control key as follows: key <HENK> { [ Control_R ] }; However, it does not work. I even tried xmodmap without success: xmodmap -e "...
0
votes
1answer
2k views

Bind bash script to keypress

How do I map a keypress on a keyboard to a bash script? For example, when I press the "Esc" key, the script is run. OS: XFCE Spin Fedora 19 ---- EDIT ---- I need to set this via the console. This ...
1
vote
1answer
341 views

Can I map capslock to lshift + rshift?

I want to toggle capslock when I hit both shift keys at once. Is this possible? I'm currently using xubuntu and xmodmap if it matters at all.
2
votes
0answers
184 views

Can I get urxvt to recognize xmodmap configuration?

i switch from an apple-style keyboard at home to a microsoft-style keyboard at work. the primary difference in these keyboards is that the super key and the alt key are transposed. i've used xmodmap ...
3
votes
1answer
2k views

Create new mod key with Xmodmap to remap keys?

I'm trying to remap my parenthesis and bracket keys to a more comfortable position on my keyboard. Would it be possible to create a NEW modifier key (such as Control or Shift) in Xmodmap and then ...
2
votes
1answer
845 views

Switching left alt and left win

I have a Thinkpad X230 (german layout, [edit]running linux[/edit]) and I want to switch the left win- and the left alt-key somehow with the right alt-key (AltGr) not being touched. However, I haven't ...
2
votes
1answer
1k views

How do I get a valid xmodmap while using xcape

I'll admit at the start that X's key-mapping is a bit of a black-art for me which mainly involves copy and pasting examples from places like SO and SU and seeing if it works. However in this case I ...
1
vote
2answers
862 views

How to make my Alt_R function as another Control on Linux

I want to use my right Alt as another Control key to use with Emacs. I tried following (with modifications) this tutorial: http://earthviaradio.wordpress.com/2012/02/06/swapping-the-left-alt-and-ctrl-...
4
votes
2answers
1k views

How to keep per-keyboard layout settings?

I am using xmodmap (and sometimes xkbcomp instead) to adjust my keyboard layout (e.g. mapping Caps Lock to the Mod3 modifier). When I plug a USB keyboard into my laptop or insert a YubiKey (which ...
3
votes
0answers
460 views

Is there a way to make `xmodmap ~/.Xmodmap` run faster?

On Fedora 19, when I run xmodmap ~/.Xmodmap it locks my display for about 15-20 seconds. The command completes successfully, but I am unsure of why it takes so long. I'm assuming there is an X ...
1
vote
0answers
222 views

Prevent Screenshot in gnome using xmodmap

I want to prevent screenshots from being taken in GNOME using keyboard shortcuts. I need to do this by running a script in such a manner that it can be reverted later. I tried to do this using ...
0
votes
1answer
1k views

Undo remap using xmodmap

In an attempt to remap the right alt key to my left alt key I had run the following: xmodmap -e 'keysym Alt_L=Alt_R' Now I cannot revert it back to it's original state. How can I undo this blunder?