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

learn more… | top users | synonyms

3
votes
0answers
82 views

Make Compose not compose after certain key presses

On my laptop, I use the Win as a modifier. With the Fn key pressed, the key sends a different keysym and I use that as a Compose key. keycode 133 = Hyper_L keycode 134 = Multi_key add mod4 = Hyper_L ...
3
votes
1answer
1k views

Mapping AltGr to left control

I mapped my AltGr key to Ctrl with the following command: setxkbmap -option ctrl:ralt_rctrl However, when displaying the bindings with xmodmap -pke I can see that the keycode is associated to ...
2
votes
1answer
90 views

Xmodmap syntax for rebinding Shift+Down to Up

I would like to rebind some keys on Linux via Xmodmap. Left and up cursor on my Acer (yes, I know) laptop have broke. I would like to map shift+down to up, and shift+right to left. Struggling to ...
2
votes
1answer
433 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: ...
2
votes
1answer
119 views

How to swap the Ctrl and Alt keys in ibus?

I swapped both sides of Ctrl and Alt using xmodmap. It is quite convenient to use Ctrl keys in Emacs, Emacs uses Ctrl key a lot. However, when I start ibus, the xmodmap stops working. I googled and ...
2
votes
2answers
3k views

how to swap ctrl and capslock using xmodmap?

I know this xmodmap script can swap ctrl and capslock: remove Lock = Caps_Lock remove Control = Control_L keysym Caps_Lock = Control_L keysym Control_L = Caps_Lock add Lock = Caps_Lock add Control ...
2
votes
1answer
563 views

Since yesterday's Debian update, X11 does not appear to load my ~/.Xmodmap file, what would the most proper way of loading it be?

Due to lack of multimedia keys on the current keyboard, I bind F12 to play/pause, but that stopped working since yesterday, after to a large batch upgrade from the last month or so. So, what I am ...
2
votes
2answers
561 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
78 views

resetting keys changed by xmodmap

I am playing around with xmodmap filename to assign among others, the Euro sign to the number five key on my US keyboard. I have done some wrong assignments and want to reset them, and I don't want ...
2
votes
1answer
369 views

Colon/Semicolon remapping with xmodmap with two active setxkbmap layouts

Gentlemen, I'm a non-native english speaker and need a second language layout. And I'm a heavy Vim user, and use : much more often than ;. At the moment they are remapped in .vimrc, buth that causes ...
2
votes
0answers
26 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 ...
2
votes
1answer
241 views

Changing specific keys on Apple keyboard under Fedora 22

I'm trying to change some specific keys on my USB Apple keyboard running Fedora 22. Just spent three days searching for an answer and trying different solutions, I ended up using xmodmap and still ...
2
votes
0answers
302 views

How to permanently remap caps lock to esc in X11?

I want to remap caps lock to escape in X11 (i.e. pressing the physical caps lock button will be interpreted as esc by applications and esc's behavior will not change). The solution must survive an X ...
2
votes
0answers
172 views

Missing KeyPress event

I got new thinkpad and it's missing a ContextMenu key and has PrintScreen key where ContextMenu should have been. I remapped it using xmodmap. The problem is, the key is missing KeyPress events, only ...
2
votes
1answer
209 views

xmodmap hanging the system for 20 secs and not sticking

I edited the keyboard map using xmodmap as per https://wiki.archlinux.org/index.php/Xmodmap, and I have two problems: executing xmodmap ~/.Xmodmap completely hangs the system for 15-25secs, which ...
2
votes
0answers
595 views

OpenSUSE - Apple Wireless Keyboard - Switch “fn” and “ctrl” key?

I'm trying to configure the Apple Keyboard so that the "fn" key and the "ctrl" key are swapped. So far I swapped the "cmd" and "alt" key, the "°" and "<" key using xmodmap. Information for that can ...
1
vote
4answers
2k 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
2answers
69 views

Can Xmonad treat left and right alt differently?

I have an application that utilizes ALT_R+ENTER to perform a function. When using this application in Xmonad, the combination Mod1+ENTER triggers the function "swap the current window with the master ...
1
vote
1answer
483 views

Remap keypad keys to modifiers

I did some research but I couldn't find a working solution: How can I make my keyboard buttons: KP_1, KP_2, KP_3 to work exactly the same as Shift_L, Alt_L and Control_L? I use Linux Mint 17 ...
1
vote
1answer
685 views

Xmodmap on bashrc not working [duplicate]

Possible Duplicate: Why won’t my xmodmap command run on startup/login? I have my .bashrc file with the three following commands: xmodmap ~/.xmodmap synclient TapButton2=2 synclient ...
1
vote
1answer
617 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
1answer
59 views

After mapping Caps Lock to Escape using xmodmap, how to revert Caps Lock back to Caps Lock without altering Escape key?

I have mapped my Caps Lock key to function as Escape using this command. xmodmap -e "remove Lock = Caps_Lock" -e "keysym Caps_Lock = Escape" Now how can I undo this mapping? I tried the following ...
1
vote
1answer
492 views

Using xcape + xmodmap to change some keys

Using xcape and xmodmap, how does one Make the CAPSLOCK key behave as a SUPER modifier key when pressed in conjunction w/another key. Make the CAPSLOCK key function as the ESCAPE key when pressed ...
1
vote
1answer
63 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 ...
1
vote
1answer
1k views

Weird problem. My left arrow key is not working and sometimes muting sound

My left arrow key is not working as intended. In KDE, it mutes the sound. In Awesome Window manager, it does nothing. Here's my 00-keyboard.conf file : I have tired to comment out XkbModel, ...
1
vote
1answer
48 views

Why isn't X treating ALT_L and ALT_R differently w/r/t Mod1

I have changed the definition of Mod1 via xmodmap to not include ALT_R (to understand why scroll to the bottom). The current layout of the modifiers is below. Despite ALT_R not participating in the ...
1
vote
1answer
144 views

Set global xmodmap in Debian

I currently have xmodmap setup for my user so I can type certain special characters. However, this only applies to my user, and I need these characters to be type-able everywhere, for all users. Is ...
1
vote
1answer
497 views

Map Right Alt to Alt instead of AltGr

I have a Kinesis Advantage keyboard and I'm trying to make it so that my right and left Alt keys do the same thing. Currently the left Alt key works as expected but the right Alt key just allows me to ...
1
vote
1answer
207 views

Remapping WASD + R_Shift to arrows

I know this has already been asked so many times, but even after searching, I still can't do it. I simply want to map R_Shift + WASD to the arrow keys (Linux). I can map Shift + WASD to arrows using ...
1
vote
1answer
93 views

Is there a way to bind TAB so that it outputs 2 space characters?

Is there a way to bind TAB so that it outputs 2 space characters? I know you can do this in a text editor like Vim, but I wanted to carry over this functionality to cat >>.
1
vote
1answer
25 views

~/.xinitrc and Xmodmap startup item fail to take effect on startup in mint 17.3

In accordance with this post I have added xmodmap ~/Documents/looseScripts/Xmodmap to my ~/.xinitrc. I have also created an item in "startup applications" with the command: bash -c "xmodmap ...
1
vote
0answers
8 views

read .Xmodmap on login in Cinnamon

I am running Linux Mint 17 and want Cinnamon to read from my .Xmodmap on start. Seems that ~/.Xmodmap is not being read by default. How do I do that?
1
vote
1answer
63 views

convert .Xmodmap to custom.xkb file and load it from $HOME directory - customize x keyboard [duplicate]

I use the following .Xmodmap file to map a few symbols and German Umlaute öäü: keycode 108 = Mode_switch keycode 13 = 4 dollar EuroSign keycode 19 = ...
1
vote
0answers
32 views

Global vim-like (hjkl) navigation with numlock & xmodmap?

I'd like to be able mimic vim's hjkl navigation everywhere in the system by utilizing num lock (or scroll lock), and making hjkl keys act as arrows whenever num lock is on, and regular behavior ...
1
vote
0answers
47 views

Can I xmodmap only a specific keyboard?

I'd like to swap some keys but only in external keyboard. Is this possible with xmodmap? I've found this question: Can I Xmodmap only a specific device? but it refers only to mouse. I found here ...
1
vote
0answers
15 views

How to map S-Up to Down? [duplicate]

The down key on my laptop is broken. I want to map shift+up to down. My original layout had (from xmodmap -pke) keycode 111 = Up NoSymbol Up keycode 113 = Left NoSymbol Left keycode 114 = Right ...
1
vote
0answers
38 views

Why could sudo be required OUTSIDE of shell script but not INSIDE of shell script? [closed]

Using the command xmodmap -e "keycode 66 = Hyper_L" in the console requires sudo. Putting the command xmodmap -e "keycode 66 = Hyper_L" inside a shell script does NOT require sudo (that is, I don't ...
1
vote
0answers
19 views

particular Laptop key has no keycode (found with xev from Xorg) [duplicate]

that following key should be XF86AudioLowerVolume, but it has not even a defined keycode, i could assign the function of XF86AudioLowerVolume. I've used xev to find that out. I'm using debian Jessie ...
1
vote
0answers
40 views

Why does Caps Lock key behave as Caps Lock key without the Lock modifier?

At first, there is no key mapping. The Caps Lock key on my keyboard behaves as Caps Lock. lone@debian:~$ xmodmap -pke | grep Caps_Lock keycode 66 = Caps_Lock NoSymbol Caps_Lock lone@debian:~$ ...
1
vote
1answer
518 views

How do I enable Shift Lock? (Sticky shift key)

I want to map one of my keys the shift lock key. In my understanding, the shift lock key is a kind of a 'sticky' shift key: it remains pressed, shifting all keys of the layout until pressed again. It ...
1
vote
1answer
84 views

Remapping both Caps Lock and Windows keys to be separate modifiers

I want to use both my Caps Lock key and Windows key in my i3wm config. In particular, I want Caps Lock to take the place of $mod in the config and I also want to be able to reference the Windows key ...
1
vote
0answers
50 views

Remap key to two modifers or use meta shortcuts in terminal (terminator)

Background: Running Arch Linux on KDE. KDE shortcuts have a problem with being saved past reboot so i'm using xmodmap and xbindkeys. So I am using xmodmap. Right now caps lock is mapped to meta ...
1
vote
0answers
110 views

xkbmap remap PrtScr and Insert Keys to Home and Escape

I've been fumbling with xkbmap for a while, and I can't figure out how to remap the Print Screen button to Home. It's as if the us keymap just doesn't mention the PRSC key code at all. I can't use ...
1
vote
1answer
296 views

How Are Keys or Keycodes Mapped to X Key Symbols?

I am trying to map a function key combination to an XF86 key symbol. The key combination is Fn+F1, which I was able to use showkey to get the raw keycode for. jason@io ~ $ showkey kb mode was RAW [ ...
1
vote
1answer
222 views

How to map extended buttons on mouse?

I am trying to follow this guide to using a Logitech G600. I have (using a windows computer) mapped each key combo on the mouse to something on a normal keyboard. I have set up some rules in ...
1
vote
1answer
216 views

.xsession executed on login in Linux Mint Cinnamon

I've put a command to change my keyboard mapping in .xession, but this does not appear to be executed on login in Cinnamon, although it seems to work fine on an older MATE box. Since first asking ...
1
vote
0answers
14 views

Key with modifiers to call certain behaviour in xmodmap

HW: Samsung N145 (10" netbook) OS: Xubuntu 14.10 Problem: Backspace key is not functioning. Want to make Backspace key behaviour be called by Ctrl+Del key combination. I guess it should be possible to ...
1
vote
0answers
28 views

execute command on pointer movement, wait and revert?

I've got two pointing devices (touchpad and trackpoint) and the goal is to execute a command when movement (any direction, any distance) is detected on the trackpoint, then wait a configurable amount ...
1
vote
0answers
46 views

is this a keyboard hardware limitation?

I have remapped Caps_Lock to Ctrl_L on an ancient mechanical keyboard. It is still impossible to use the caps lock key to produce key combinations like C-e. xev shows the following sequences are ...
1
vote
0answers
81 views

Remap Keys for ALL layouts

I put xmodmap -e 'keycode 97 = backslash' into a script that is executed at startup. My hardware is a Japanese keyboard, so it lacks some keys and has some extra ones and I am trying remap some of the ...