![]() ![]() Xkbcomp -i $(xinput –list –id-only “keyboard:USB Laser Game Mouse”) ~/myusbkblayout. Xinput –list –id-only “keyboard:USB Laser Game Mouse” xmodmap -e 'keycode 107 mod1 F9 SysReq' should swap F9 to where PrtSc was keeping the modified SysReq ( Alt + PrtSc) again we can use xev to help verify this. ↳ USB Laser Game Mouse Consumer Control id=18 ⎜ ↳ USB Laser Game Mouse Consumer Control id=17 This indicates command on Mac and control on Windows and Linux. I also like to remap my keyboard so that Pause performs the same function as BackSpace and Scroll Lock performs the same function as Page Up. To do this, I use xmodmap in the terminal: xmodmap -e 'keycode 135 Next' Hey presto, your keyboard has been remapped. If possible, Id like to change the asterix key and make it tab, as I never use it. I like to remap my Menu key to perform the same function as Page Down. consider that you have a composite device which is a mouse with additional buttons which it lists as a keyboard. Are there any programs that will let you remap keyboard keys, or are they basically set in stone I use the keypad all the time when filling in forms and typing numeric passwords, but I always have to use the other hand or reach over to Tab to the next textbox. ![]() You can get the ID from the name even if it is the same for the pointer/keyboard by doing some more trickery:Į.g. First off, try looking in Preferences > Keyboard > Layouts > Layout Options under the Alt/Win key behavior if there is a suitable option there for you. To change a keys function we need to know the keycode of the NEW key being pressed and the 'action' of the OLD or existing key for that function. A slight improvement but still doesn’t solve the thing entirely. The evtest utility should also give you the correct scancodes: after typing a key, you should get 2 lines and the first one should end with something of the form code 4 (MSCSCAN), value xxx, where xxx is the scancode. If you’re in luck and your composite device has a unique name for its pointer and its keyboard then you can use that instead of its id in your call to xkbcomp. But obviously if you disconnect your device and reconnect it the map is gone and has to be loaded in again, and it is entirely possible for your device to show up under a different id this time. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |