The xmodmap tag has no wiki summary.
9
votes
3answers
2k views
How to get keycodes for xmodmap?
I'm trying to use xmodmap to remap alt/windows 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 ...
7
votes
2answers
1k views
Mapping key combination with xmodmap
I'm trying to achieve the following mapping
keycode 135 = <Ctrl-C>
Is it possible to achieve this in some way?
6
votes
1answer
185 views
Back button to middle mouse button
I would like to map "Back" button (xev shows it as "button 7") of my mouse (A4Tech X-7) to act as a middle mouse button. Is there a way to do this? I'm lost in google, finding only how to map buttons ...
6
votes
0answers
392 views
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 ...
5
votes
1answer
1k views
Relationship of keyboard layout and xmodmap
I'm using Xubuntu. Before login I can choose a keyboard layout. I'm using xmodmap for remmaping some keys.
I'm interested in two things:
How the state of keyboard mapping changes when I turn the ...
5
votes
2answers
1k views
Remapping Caps Lock with xmodmap doesn't work
When I program I like to swap these keys:
Esc ↔ Tab
Ctrl ↔ CapsLock
In ~/.xmodmap, I have specified these re-mappings:
keycode 66 = Control_L
keycode 37 = Caps_Lock
keycode 23 = Escape
keycode 9 = ...
5
votes
1answer
256 views
Cannot switch to console anymore after using Alt_R as mod4
I'd like to use the right ALT key as 'mod4' (most notably because, by default, the 'awesome' window manager is using mod4 as a modifier for most WM commands and I like that idea a lot).
However I've ...
5
votes
3answers
497 views
How to set an xmodmap file for the session manager (or at least SLiM) because of a broken physical key
I've got my laptop set up to boot directly into SLiM as the X session manager.
However, the "M" key on my laptop is broken. I've gotten around this when logged in by using xmodmap to remap my ...
4
votes
3answers
627 views
Set the key for spanish eñe letter
How can I map the spanish eñe letter to a key combination? What application is suitable for this purpose (xmodmap, xbindkeys, ...)?
When I press Caps Lock + n, it should type ñ
When I press Caps ...
4
votes
1answer
2k views
AltGr keys don't work with Ubuntu in VirtualBox
I just installed VirtualBox (from Oracle) in Windows 7, and created a virtual machine with latest Ubuntu.
Here in Firefox I can use the left Ctrl key, while the right one doesn't have any effect. ...
4
votes
2answers
539 views
run xmodmap commands after login
I created a file ~/.Xmodmap with my mapping commands. I thought that it will be automatically launched after login (and restart) but it's not. So I have to always run after login the command
$ ...
4
votes
2answers
844 views
Remapping caps-lock to escape, and menu to compose, on the linux console
When running X I use a .xmodmaprc to remap certain keys thusly:
! Make it so that both Caps Lock and Escape do Escape
clear Lock
keysym Caps_Lock = Escape
! Remap the menu key as Compose
keysym Menu ...
4
votes
1answer
259 views
F4-key mysteriously reassigned
In the middle of today, my F4 key started producing the letter p, without my conscious acting and I can't seem to revert this change. Whenever I press F4, p appears instead. How can I change this ...
4
votes
3answers
644 views
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, ...
4
votes
1answer
2k views
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 ...
4
votes
1answer
744 views
Openbox overwrites xmodmap configuration
I am setting up openbox on my laptop running Linux Mint 13. I want my Caps Lock key to act as an additional control key. I put the required settings in my ~/.Xmodmap file and checked it by running
...
3
votes
3answers
1k views
how to assign another modifier to Alt key for X11?
Aim:
I would like to assign Alt to CapsLock-key, and Meta to Alt-key. But in such way, Alt-key would no longer be recognized as Alt, and CapsLock-key would no longer be recognized as CapsLock.
...
3
votes
1answer
148 views
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 ...
3
votes
1answer
83 views
Setting Mod4 in awesome
I'm trying to set up awesome. When I start it the Mod4 (Windows) key is not working. So I tried to extent my .Xmodmap
clear Mod4
add Mod4 = Multi_key
When I run xmodmap .Xmodmap the Mod4 works, but ...
2
votes
4answers
488 views
Turn NumLock on on startup?
I usually edit in Vim,and when pressing +, I'd rather move my hand to the right part of the keyboard where + resides rather than doing shift + =.
But when NumLock is not on, in Vim it just opens a ...
2
votes
3answers
802 views
Matlab gets “crazy” after type special characters
I'm using a computer running Ubuntu and I'm connected through ssh to a RedHat machine where I use Matlab in command line mode (matlab -nodesktop). Matlab version is 7.10.0.499 (R2010a).
My problem ...
2
votes
2answers
251 views
Is it possible to add more modifiers?
I'm using minimalistic WM, which is controlled by keyboard..
The main question, is it possible ?
How ?
for example, Mod6
I know how to remap existing modifiers, but not how to add a new ones.
I'm ...
2
votes
2answers
282 views
Where to apply xmodmap for systemwide usage?
I need to apply a custom xmodmap for all users at the start. Where do I need to put it? I have thought at /etc/rc.local? Does this make sense?
2
votes
1answer
69 views
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 ...
2
votes
1answer
151 views
Can I Xmodmap only a specific device?
I'd like to reverse scroll direction, but only on my BCM5794 multitouch trackpad. Is this possible?
2
votes
0answers
108 views
xmodmap KeyPress Event to ButtonPress event
I just got a logitech t400 mouse and everything is working well, except I want to remap the "top" part of the middle mouse to actual middle mouse function.
When I run xev, and capture the clicks, ...
1
vote
1answer
233 views
Remap Caps_Lock to Control in Solaris
I'm having the hardest time trying to understand how xmodmap works. I want to remap the Caps Lock key to Control.
In an attempt to emaulate the answers shown here, I created the file .xmodmaprc:
...
1
vote
1answer
387 views
Determining keycode assignments for X.org on a PC
At some point around late 2008 to early 2009, some keycode values (apparently, for the keys that weren't on an XT keyboard) on a standard PC keyboard when running X.org under Linux changed. I don't ...
1
vote
4answers
597 views
Toggle between dvorak and qwerty
I've recently started to learn the dvorak keyboard layout, but I still need to use qwerty sometimes.
I'm looking for a script to toggle between the two keyboard layouts.
Also, I'd like to invoke ...
1
vote
1answer
27 views
How to clear keybinding
I'm in Linux (if it's relevant: Fedora 17 x86_64, 3.6.11) and my laptop's PageUp key has gone ultrasensitive on me. I'd like to disable it (remap it to nothing at all) as I've never liked it where it ...