6
votes
1answer
194 views

How can I remove a single temporary key mapping without resetting the entire keymap?

So I saw this question the other day. The user's K key was broken and they wanted to map it to Right-Shift. A good answer popped up and I thought I'd test it to see if it worked. I ran: xmodmap -e ...
0
votes
0answers
23 views

Issues with xmodmap, alt+shift or alt+control viewed as hyper?

I have a file, .xmodmap, that looks like this : clear Control clear mod4 clear mod1 keycode 64 = Control_L keycode 37 = Control_L keycode 133 = Alt_L keycode 108 = Super_R keycode 134 = Alt_R add ...
1
vote
1answer
176 views

Xmodmap remapping modifiers not working?

I am using a new keyboard, and trying to set it up to mimic the keyboard on my laptop. I'm using xmodmap on Ubuntu 14.04, and can't get it to work. I cleared the modifier keys like so : xmodmap -e ...
0
votes
1answer
162 views

Trying to map <Ctrl>+<hjkl> to <Left Down Up Right> globally (Vim-like arrow keys) with xmodmap

I am trying to map Ctrl+H,J,K,L to arrow keys Left,Down,Up,Right, respectively, on Ubuntu OS (globally, not inside Vim). I've attempted the solution posted here, but the modifier commands are not ...
2
votes
1answer
140 views

Using Xmodmap, my shift lock now acts as both a shift lock and a compose key. I just want it to work as a compose key. What can I do?

I have two Xmodmap files. First one: keycode 8 = keycode 9 = Escape NoSymbol Escape keycode 10 = ampersand 1 ampersand 1 bar exclamdown bar keycode 11 = eacute 2 eacute 2 at oneeighth at ...
1
vote
0answers
143 views

How to use SLEEP, WAKE and POWER keys as media keys (VolumeUp , Volume Down etc) in Ubuntu 14.04?

I have an usb keyboard with SLEEP, WAKE and POWER keys but no media keys. In Ubuntu 12.04 i used xmodmap to remap this keys as XF86AudioMute, XF86AudioLowerVolume and XF86AudioRaiseVolume. This is how ...
0
votes
2answers
1k views

How to run command at startup? [duplicate]

The Return key in my keyboard is broken, so I have chosen to make my PgDn key to act like the Return key. Now I learned how to do this using 'xmodmap'. The command I have to run is: xmodmap -e ...
1
vote
1answer
468 views

Left Alt key should work as right Alt key (Alt Gr)

I'm using a German Apple keyboard on my Ubuntu 12.04 machine. Under Mac OS X the left Alt key has the same behavior as the right Alt key (I think the right Alt key acts a Alt Gr). I don't know what I ...
0
votes
0answers
57 views

Remap Windows key

I have a hardware "Windows" button on the front of my Lenovo Ideapad Yoga 13 that maps to the "Windows" key. According to xev, the keycode passed by the "Windows" key is the same that is passed by the ...
0
votes
0answers
73 views

Enter key not working after xmodmap change

Mistook key number for another key, now i cant get it back to working. tried: xmodmap -e "keycode 36 = Return NoSymbol Return" xmodmap -e "keycode 36 = Return" xmodmap -e "keycode 36 = Enter NoSymbol ...
1
vote
0answers
94 views

How do I create curly brackets using Shift + Alt

I'm used to writing curly brackets using Left Shift + Left Alt + 7 or 0. As of right now I can only do them using the Right Alt + 7 or 0. How do I configure my Left Alt + Left Shift to behave as ...
1
vote
0answers
106 views

Remapping Menu key to Delete on Xubuntu

I would like to bind my Menu key (the one that brings up the context menu at your cursor location) to my Delete key for convenience. Preferably, I'd like to do this through xkboptions in ...
2
votes
0answers
86 views

Remap keyboard using xmodmap but when press to change keyboard layout all settings are reset to default

I tried to map key following this guide How do I remap certain keys?. It's work for me. but one problem that i found is when i change keyboard layout (alt+shift) all keys will be reset to default. ...
0
votes
0answers
51 views

problem switching between shift and super key

since my shift key in my keyboard is not functioning properly I wanted to permenantly switch between shift and super key. I've succeeded doing that by using xmodmap command which runs this script: ! ...
1
vote
1answer
101 views

How to reconfigure keyboard (W and P not functioning correctly) [duplicate]

I was reluctant in asking this question but everything I've researched has led me to a dead end. Shift + w and Shift + p aren't working correctly. So I'm unable to use W and P unless I use the caps ...
1
vote
0answers
56 views

Function keys on the apply keyboard with no root

There is a well-known method on how to make function keys work on Apple keyboards in Ubuntu: echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode However, is there a way to do that with no root? ...
0
votes
2answers
508 views

How can I set a certain keycode to a key and bind it to the right action?

I have a laptop with Swedish keyboard layout, everything works well with the keyboard. Due to injuries I am using an external ergonomic USB keyboard, this is where I am experiencing difficulties. The ...
1
vote
1answer
135 views

Swapping right shift and delete key using xmodmap

I'm unsure how to swap these 2, this is the thought process I had but am unsure how to get it working: remove sh = Shift_R remove dl = Delete keysym Delete = Shift_R keysym Shift_R = Delete add sh ...
1
vote
1answer
137 views

How to map right shift to slash using xmodmap? [duplicate]

How to map Shift_R to slash (/) using xmodmap?
4
votes
1answer
734 views

How do I remap the IJKL keys to arrow keys when I hold Alt down?

I need to remap IJKL to the arrow keys while alt is down. Also, modifiers should still work ie: Shift+Ctrl+Alt+L should map to Shift+Ctrl+RightArrow I was able to get this working using xbindkeys + ...
0
votes
0answers
31 views

Why is the keyboard repeat rate so high for Ctrl, and can I change it to the default rate?

I use my right Ctrl key for Delete by having xmodmap -e "keycode 105 = Delete" in my .bashrc, where 105 is the keycode for my right Ctrl. Today I tried to get it to repeatedly activate when held ...
0
votes
1answer
86 views

Xmodmap configuration

I am trying to configure my keyboard to be able to type German characters without trying to learn another completely different keyboard layout. I found the exact stuff that I need to do to Xmodmap: ! ...
0
votes
0answers
104 views

German Umlauts on US Keyboard and second layout

I want to use the following keyboard layout setup: US layout, modified to support German Umlauts and BG-Bulgarian Phonetic layout. So, the normal setup Standard US, BG works fine. Also, I ...
3
votes
1answer
269 views

Change aphostrohe with AltGr + P using xmodmap

I'm struggling with changing one keybind with xmodmap. AltGr + P outputs þ, but I would like to change it to output '. xmodmap -pm outputs: xmodmap: up to 4 keys per modifier, (keycodes in ...
0
votes
1answer
114 views

Map CapsLock key to Return

I want to remap my CapsLock key to work as if it was a Return key. I've created a xmodmap file like this: remove Lock = Caps_Lock keycode 66 = Return If i run it from Terminal: xmodmap ...
1
vote
0answers
78 views

I want to use Xmodmap along with multiple layouts

I usually use 3 keyboard layouts: US, BG, DE. As I need the DE layout only for Umlaute, I found the solution with modifying the keys in ~/.Xmodmap. The command xmodmap ~/.Xmodmap changes my US layout ...
0
votes
1answer
194 views

xmodmap reverting periodically

I'm using xmodmap to swap control and command keys on my macbook pro. However, periodically the key revert back to their original state and this is becoming quite annoying. I'm on Ubuntu 13.10 and I ...
1
vote
1answer
832 views

How to apply Xmodmap permanently

I had to make some changes to the xmodmap in my home directory. When i execute xmodmap ./.Xmodmap everthing works as expected. But i can't figure out how to apply this permanently. I tried to add it ...
2
votes
2answers
764 views

Set Context Menu key to function as Right Control

Dell notebooks in Brazil and possibly other countries no longer ship with a right control key. This is bad for ergonomics, so I would like to set the context menu key to function as right control. ...
0
votes
1answer
54 views

Remap dead_diaresis(?) to to CTRL

I have some problem with my left little finger. So I'm trying to remap the key which looks like this: with the CTRL-button. That part I managed. Now I want to place that key on the caps lock key ...
0
votes
1answer
178 views

Caps-Lock remaps to ESC doesn't desactivate the capslocking

I'm the happy owner of a Asus ZenBook Prime UX31A-R4005P running kubuntu 13.04. I'm also a happy vim user, that mean I'm lazy and don't like for my hands to move more than they should. I did remap ...
1
vote
0answers
127 views

How can I correctly rebind an additional space to another key?

I've bought a split ergonomic keyboard, and wish to bind the left spacebar to space. I'm attempting to use xmodmap, which binds it fine when pressed alone, except it does not correctly recognise ...
2
votes
1answer
443 views

After swapping ctrl and caps in xmodmap, how can I make ctrl work properly for multi-modifier combinations?

I've swapped left ctrl and caps lock by creating ~/.Xmodmap keycode 66 = Control_L keycode 37 = Caps_Lock clear Lock clear Control add Lock = Caps_Lock add Control = Control_L Control_R then ...
3
votes
1answer
317 views

Ubuntu 12.10 xmodmap reset after usb plug/unplug

In Ubuntu 12.10 my .Xmodmap settings get lost (reset) after I plug/unplug my wireless keyboard/mouse combo. Do you know how to prevent or override this behavior?
1
vote
0answers
284 views

Ubuntu 12.10: Window switching using key combination Alt-Tab changes behaviour when using Alt specified by xmodmap

Alt-Tab normally lets you cycle through open windows and changes focus to the window that is active when you release Alt. This is all fine, but I want to use another key for Alt_L so I've specified ...
1
vote
0answers
151 views

Xmodmap changes aren't taking effect

Ok. I have a Thinkpad laptop and my bottom left key is a function key instead of a Control key like I'm used to. So I fired up xev, pressed the Fn and got a keycode of 151. So I cleared all of it's ...
7
votes
1answer
1k views

How to bind Ctrl+arrows to Home and End keys? xmodmap does not work

On Windows, I used to bind Ctrl+Left to Home and Ctrl + Right to End via ahk. Now I'm struggling to achieve this behavior in Ubuntu. I've tried editing /etc/inputrc: "\e[1;5C": end-of-line ...
6
votes
2answers
2k views

How to swap Ctrl and Fn on a Lenovo Thinkpad keyboard?

I tried to exchange my Fn key with left Control, which didn't work. I used the command xev to get the keycodes/keysym. Afterwards I used: xmodmap -e 'keycode 151=Control_L' xmodmap -e 'keycode ...
1
vote
1answer
642 views

Remapping keys on Apple keyboard

I'm using the German Apple keyboard for both MacOS X and Ubuntu 12.10. $ lsbusb ... Bus 002 Device 004: ID 05ac:0250 Apple, Inc. MP110Z/B I've successfully remapped the exchanged < and ^ ...
4
votes
2answers
442 views

how to remap Ctrl to Escape if pressed and released on its own

I want to remap Control, so that: If it is pressed and released with no other key, it acts as Escape. If it is pressed & held together with another key, it acts as Control (no change in ...
6
votes
1answer
228 views

Map function+backspace to delete

I'm used to Apple laptops, on which Function + Backspace is mapped to Delete. I'm also okay with Shift + Backspace. Is there a way to obtain this? Note, I'm using Xmonad and have some keyboard ...
7
votes
3answers
2k views

Remapping Caps Lock to Control and Escape (not the usual way)

I know how to use xmodmap to remap the Caps lock key so it acts as a Control key, or as an Escape key. I would like to combine both features as follows: When I push, then release, the Caps lock key, ...
0
votes
2answers
793 views

How can I remap my keys to act like the Macintosh keyboard (like hold alt l + l click = r click)?

I want my keyboard layout to act like a Macintosh keyboard. It's hard to use my computer after years on a mac. I want to disable my right mouse click, and replace it with alt + right mouse click. ...
2
votes
1answer
1k views

Keyboard / keymap problems with Xubuntu 12.04 + NX nomachine

I'm running NX client on my Macbook Pro to connect to a Xubuntu 12.04 desktop at work. I have configured NX client to start up a console upon connection. I am able to connect to my remote linux ...
3
votes
0answers
1k views

How to share two keyboard on the same laptop, french iso layout and usa ansi layout keyboard with usb?

I recently buy a "noppoo choc mini" with this specific ANSI US-INTERNATIONAL pc84 layout. This specific keyboard have only 84 key , a 60% (compact tenkeyless) reduced layout My problem is ...
0
votes
1answer
126 views

Change is key-mapping is not remembered in Ubuntu 10.04

I have mapped my PageDown key to the Return command on my keyboard as the original Return key is broken. I used the following command [ I'm using Ubuntu 10.04 ]: xmodmap -e 'keycode 117=Return' It ...
4
votes
2answers
2k views

Remapping keyboard shortcuts (copy, paste etc) to Alt key instead of Ctrl

Interestingly, it turns out this is almost impossible to do. Remapping Alt key to behave as another Ctrl key is not a solution because you lose the Alt key functionalities (some of which are ...
3
votes
1answer
361 views

Changing keybindings for Ubuntu using xmodmap fails

I've changed some of the keybindings for my keyboard using xmodmap, I've specifically changed my caps-lock key to point to CTRL_L and my CTRL_L key to point to Super_L. This registers in xev but my ...
3
votes
1answer
466 views

xmodmap works for gnome session, but not for apps?

I'm running Ubuntu 11.10 using the gnome-fallback mode with compiz. My keyboard is the Apple metal add-on USB keyboard. My .Xmodmap file is set to swap the Alt and Command keys. I built the key map ...
4
votes
3answers
748 views

How do I bind 'Menu key' to right 'Win key'?

I have a keyboard with two "Win" keys but without "Menu" key. I'd like to bind my right Win as Menu. I tried do used xev in terminal and get keycode for .Xmodmap file but can't take code of right Win. ...