Questions tagged [xmodmap]

Xmodmap is a tool found in the xll-xserver-utils-package and it enables keyboard maps and pointer button mappings to be configured according to the user's preference. It is often used to set up custom keys such as launcher or media buttons on a laptop.

248 questions
9
votes
4 answers

remap right alt to behave as right ctrl

I'm trying to remap my right alt to behave like my right ctrl so I can use my right thumb to press the ctrl button. This is Ubuntu 12.04. I've created the file .Xmodmap in my home folder with the following content: clear control clear mod1 !keycode…
6
votes
2 answers

How to map [Alt] + [hjkl] keys to arrow keys?

I know how to map [AltGr] + [h|j|k|l] keys to arrow keys, like: [AltGr]+[h] ... [Left] [AltGr]+[j] ... [Down] [AltGr]+[k] ... [Up] [AltGr]+[l] ... [Right] [AltGr]+[ö] ... [Home] [AltGr]+[ä] ... [End] This is possible in two steps: …
5
votes
1 answer

Left Alt combinations with xmodmap

How I can change Alt+symbol to some other ? For example, I changed semi-colon like this: keycode 47 = BackSpace colon semicolon colon semicolon colon But I want Alt+; to produce ;.
Yuki
  • 233
5
votes
1 answer

Overload capslock with esc and ctrl using xcape

I want to: Turn off capslock when hitting the capslock key Escape when hitting the capslock key Behave like ctrl when pressing down the capslock key What I have in my ~/.Xmodmap: !Set Capslock to LCtrl remove Lock = Caps_Lock remove Control =…
deadghost
  • 243
  • 2
  • 9
4
votes
1 answer

Can't remap Ctrl key with xmodmap

My laptop keyboard doesn't have a Right Ctrl key. And I use a different layout than the native layout of my keyboard, so there are some keys that do nothing. So I'm trying to remap one of those keys to use as a Right Control. I'm doing the following…
Jesse
  • 719
4
votes
1 answer

xmodmap: where are its local settings stored?

I ran xmodmap -e "keysym Menu = Super_L" and could reverse it using xmodmap -e "keycode 135 = Menu" But I want to know where changes made by running these particular commands are stored. I don't have ~/.xmodmaprc.
DK Bose
  • 42,548
  • 23
  • 127
  • 221
3
votes
2 answers

Use Alt_L as Space

My old laptop's keyboard has a dead Space key. I have found that with the commands: xmodmap -e "keysym Alt_L = Space" xmodmap -e "keysym Super_L = Alt_L" I can do the job,as I have to map the space to it's nearest key, thus to Alt, and then to…
2
votes
1 answer

Set xmodmap control modifier combination

What is the syntax for making ctrl+q emit KP_7? How to revert it back? I've read the man page but it does not provide example.
ken
  • 123
2
votes
2 answers

Accessing Columns 5-8 of xmodmap

If I do xmodmap -pke, my output starts as follows - keycode 8 = keycode 9 = Escape NoSymbol Escape keycode 10 = 1 exclam 1 exclam exclamdown U2044 exclamdown keycode 11 = 2 at 2 at trademark EuroSign trademark AIUI the first keysym is…
George Simms
  • 121
  • 1
1
vote
1 answer

Key disabled using xmodmap!

I disabled my key using xmodmap. How do I enable it? The command I executed was: `xmodmap -e 'keycode 16='` Any help will be appreciated.
Mayank
  • 13
1
vote
1 answer

.Xmodmap works only when automatic login disabled?

I configured .Xmodmap after the answer I got here: How to set right Alt to work as a Win(Super) key? It sets my R alt to Super key. It worked after log out and log in. When I restarted the PC, the key has stopped working. I run xev, the system…
deckoff
  • 833
1
vote
0 answers

xmodmap loose custom settinfs in some cases

All. I'm remap Cmd key behaviour to act like a Ctrl with xmodmap. All works fine, but in some cases xmodmap loose my custom settings and return to defaults. I.e. when i'm pressing Ctrl-Space (change keyboard layout in my case) or when i'm focus…
1
vote
1 answer

Restoring my original keyboard mapping without logging on

I used xmodmap to remap some keys. I followed directions to restart. Now, I can't log in. How can I restore my previous keyboard mapping?
Alex
  • 21
  • 1
1
vote
0 answers

Restoring my original keyboard mapping without logging in

Possible Duplicate: Restoring my original keyboard mapping without logging on I used xmodmap to remap some keys. I followed directions to restart. Now, I can't log in. How can I restore my previous keyboard mapping?
Alex
  • 21
  • 1
1
vote
1 answer

Xmodmap: Assign right ctrl to two keys

I'm trying to use right Ctrl to type -> Is that possible? If not, do you know of an easy way to achieve it? Here's the code I tried: keycode 105 = (minus, greater)
unloco
  • 133
1
2