xmodmap is a tool for manipulating keymaps and pointer button mappings in the Xorg environment.
Questions tagged [xmodmap]
251 questions
116
votes
6 answers
How to get keycodes for xmodmap?
I'm trying to use xmodmap to remap Alt / Super keys on Dell L100 keyboard, and have trouble getting the keycodes.
For instance, using xev doesn't give me keycode for Alt
FocusOut event, serial 36, synthetic NO, window 0x4a00001,
mode…
Yaroslav Bulatov
- 1,261
- 2
- 9
- 5
42
votes
3 answers
What is the Mode_switch modifier for?
Playing with xmodmap I encountered a modifier key I hadn't heard of: Mode_switch. It seems to have something to do with inserting special characters.
I assigned it to a key but it seems to have no effect. What is it for? Is it different from…
deprecated
- 2,841
- 4
- 24
- 22
34
votes
7 answers
Switch Fn key state
I have this issue with Lenovo Thinkcentre Edge. Its keyboard has Fn key, which acts in my Ubuntu (with Fluxbox) as if it is always "active/pressed".
I can't use standard F1-F12 keys unless I hold down this stupid key. You see, I'm a programmer so…
xholicka
- 443
- 1
- 4
- 6
26
votes
4 answers
How to prevent the caps-lock toggle effect, without remapping or disabling it?
I have an X11 program that grabs caps-lock, and uses it. The problem is, I want to disable the regular caps-lock toggling, but doing so seems to disable the key.
So whatever X11 gets for a caps-lock keypress, it must still get (no disabling the key,…
Chris2048
- 601
- 2
- 6
- 11
25
votes
3 answers
Mapping key combination with xmodmap
I'm trying to achieve the following mapping
keycode 135 =
Is it possible to achieve this in some way?
xralf
- 16,149
- 29
- 101
- 149
22
votes
8 answers
How to permanently swap esc and caps lock in xfce / xubuntu?
I followed some post a while ago, and it said to make an ~/.xmodmap file like so:
! Swap caps lock and escape
remove Lock = Caps_Lock
keysym Escape = Caps_Lock
keysym Caps_Lock = Escape
add Lock = Caps_Lock
I did, and it now I can swap esc and caps…
Dan Ross
- 595
- 2
- 5
- 14
18
votes
8 answers
Map Caps Lock to Control in Linux Mint
I am running the latest version of Linux Mint with Cinnamon. I'm trying to map Caps Lock to Ctrl, but I cannot figure out how to do it. All web searches I've done have led me to older versions of Linux Mint (there is no keyboard layout option in my…
Zach Russell
- 1,017
- 2
- 9
- 14
16
votes
1 answer
Keymapping problem when working with Emacs and Openbox
I have an Apple keyboard and I had to do some remapping of the keys to make the mod-4 key the first key to the left of the Space bar for when working with Emacs. The below script worked fine when I was using the dwm window manager, but after…
chris
- 503
- 1
- 3
- 9
15
votes
3 answers
Remapping power key to delete
I have a macbook pro running Ubuntu 13.10 with FluxBox. Unfortunately, the power button is physically above the backspace where I would expect the delete key to be in. In OS X, the PowerKey program can be used to remap the power key to delete. How…
nathan
- 271
- 2
- 7
14
votes
3 answers
How can I write a "idempotent" .Xmodmap
Currently I have an .Xmodmap file that changes my Command to Ctrl, then changes my Ctrl to Super (I'm running Linux on a Mac).
It works quite well, when only run once but on successive runs (for example when I restart my desktop environment…
coteyr
- 4,280
- 16
- 24
14
votes
1 answer
Get the keycode of a key, from a custom made keyboard
I'm trying to transform a Minitel to a computer with a Raspberry Pi.
This is a minitel:
So I soldered the matrix of the minitel keyboard to a usb keyboard pcb, like this:
Everything is working ok, I recieve some keys from my custom keyboard. I…
xavier.seignard
- 303
- 2
- 3
- 16
14
votes
3 answers
How to re-enable the caps lock key?
I am currently setting up my default keyboard layout like this:
setxkbmap -layout us -variant dvorak -option ctrl:nocaps,[...]
It disables the caps lock key and makes it an additional ctrl key, along with a swarm of other options.
I would like to…
hhaamu
- 2,025
- 18
- 20
13
votes
2 answers
Why doesn't this udev rule trigger upon removal of the device?
I have two mice, one which has an issue where the middle mouse button and button6 get triggered simultaneously. So I configured my ~/.Xmodmap to disable this button. At the same time, however, I wanted to be able to still use this button with my…
Glutanimate
- 2,168
- 4
- 22
- 38
13
votes
4 answers
Reassign Ctrl and Alt keys - xmodmap 'BadValue' error
I am attempting to remap my keyboard in order to make emacs usable. My ergonomic keyboard puts its single Control key in an isolated 4-key island way off to the left.
The OS is Debian squeeze.
Here are the lines I am attempting to feed to xmodmap, I…
Aliud Alius
- 853
- 1
- 7
- 10
13
votes
3 answers
Why do my xmodmap binds involving AltGr only work on some keys?
I want to remap my AltGR+Right_Windows but I can't figure out how. No matter what I try, pressing the right windows key emits the name keysym when right alt is pressed or not.
These are the contents of the xmodmap file I am testing right now. In my…
hugomg
- 5,543
- 4
- 35
- 53