Easy way to temporarily remap keyboard output
- EASY WAY TO TEMPORARILY REMAP KEYBOARD OUTPUT HOW TO
- EASY WAY TO TEMPORARILY REMAP KEYBOARD OUTPUT INSTALL
- EASY WAY TO TEMPORARILY REMAP KEYBOARD OUTPUT CODE
- EASY WAY TO TEMPORARILY REMAP KEYBOARD OUTPUT PS2
Input-kbd 3 (put the id index found at ls -l /dev/input/by-id/* from ex. Some more alternative ways (by to find the keys:
![easy way to temporarily remap keyboard output easy way to temporarily remap keyboard output](https://i.redd.it/jitxf1z69jb21.png)
![easy way to temporarily remap keyboard output easy way to temporarily remap keyboard output](https://www.sageaudio.com/blog/wp-content/uploads/2020/07/Screen-Shot-2020-07-16-at-10.38.27-AM.png)
Obs.: did not work either with: KEYBOARD_KEY_7e=j $#that cat on hwdb.bin did not change after the commands. $udevadm trigger #should apply the changes but nothing happened $udevadm hwdb -update #updates file: /lib/udev/hwdb.bin I found scancode "7e" (keypad ".") at vt1 with showkey -scancodes $cat >/etc/udev/hwdb.d/90-custom-keyboard.hwdb I found keycode "36" ("j" key) at vt1 with showkey This seemed promising "Map scancodes to keycodes", but after a few tests nothing changed, here are they:
EASY WAY TO TEMPORARILY REMAP KEYBOARD OUTPUT PS2
I found here that I could try setkeycodes, "because after assigning kernel keycode the button should work in xorg", but I also found that "you can't use 'setkeycodes' on USB keyboards", that's my case (I am interested in case someone make it work on ps2 as I think I could use an adapter). I also tried xkeycaps, xkbcomp, but did not try loadkeys, as it is running on X.
EASY WAY TO TEMPORARILY REMAP KEYBOARD OUTPUT HOW TO
So, how to remap keys without using xmodmap and setxkbmap? if it is ever possible to be done using some software. I think the application may be reading the keyboard raw data and ignoring X input? Such commands work for other normal windowed/applications on X tho. I tried using xmodmap and setxkbmap, but they do not work for one specific application. Apply and test.I am trying to find a way to remap keyboard keys forcefully.
EASY WAY TO TEMPORARILY REMAP KEYBOARD OUTPUT INSTALL
With that in mind, install xautomation (in order to use xte for keystroke simulations) like in Behzadi answer:Īnd create a custom shortcut, in the Trigger press the key that you want to be the shortcut, and in the Action paste xte 'key Menu'. It is important to take into account that the key that is not present in the ThinkPad keyboard is the Menu (that is it's name), it is shown in the following picture:Īlthough the key is not present, it's keycode should exist in your computer, you can find it by printing the keycode table with xmodmap -pke | grep Menu which should give you something like: If you select a file in the file explorer and press Menu the context menu for the file itself should pop-up, this does not happen with the Shift+ F10 combination, it would provide a context menu for the window Behzadi takes a similar approach to the people in the 2nd item, but linking the keyboard combination to one key through a keystroke simulator, it will link the key to the Shift+ F10 and provide the same result. When xev is used to try to find the lock key keycode it returns both the Super and the L keycodes, you just have to interpret the xev output line by line.įor and Finegan: Shift+ F10 is a context menu key, it doesn't work in all the applications and it doesn't provide the same functions as Menu. the lock key is related to the Super+ L combination).
![easy way to temporarily remap keyboard output easy way to temporarily remap keyboard output](https://www.wikihow.com/images/0/0a/Keytweakapply1.png)
Why the other answers won't work Villegas (nor Pointer) answer won't work because some of the keys located above the numeric part are not unique keys by themself ( e.g.
![easy way to temporarily remap keyboard output easy way to temporarily remap keyboard output](https://img.appnee.com/appnee.com/2018/Keyboard-Map-Tool-3.png)
I recently acquired a Lenovo E550 and had the same problem, I solved it by using xte (from xautomation) along with xmodmap. # sudo gedit /usr/share/X11/xkb/keycodes/evdevįind a line with the original mapping (in my case, = 105 ), comment it and add the new mapping of the menu command to the desired key (in my case, = 105 ) // the old mapping commented Open the file to edit: sudo vim /usr/share/X11/xkb/keycodes/evdev Optional but highly recommended! Make a backup of the configuration file: sudo cp /usr/share/X11/xkb/keycodes/evdev /usr/share/X11/xkb/keycodes/evdev_back Note: you need to do this as a super user. I want my Right control to call the context menu. Then press your button and remember the code.
EASY WAY TO TEMPORARILY REMAP KEYBOARD OUTPUT CODE
Know the key code you want to bind Menu command to. Although I show how to map the menu operation to the right control (as I personally don't use it), this instruction works for any button. I'm have had the same problem with my Huawei Matebook 14 where the menu key is missing.