How do I remap certain keys or devices?

1

Answer #: 1

Notice: As of 2013, Ubuntu and derivatives no longer use xmodmap, but instead use xkb. For more information see this answer. The answer below is no longer relevant for current releases.

For remapping certain keys you need two tools. First xev (command-line tool) and second xmodmap (also command-line tool). Both should be available in Ubuntu without extra installing them.

Start terminal window and run xev. Now it’s active and waits for you to press a key. Then press the key whose behaviour you want to change. i.e. PgUp.

xev will output some information about the pressed key. The third line is important. It should look similar to:

state 0x10, keycode 110 (keysym 0xff55, Prior), same_screen YES,

in this example Prior is the name of the behaviour the key is assigned to at the moment, the number keycode is the internal id to recognize the key. Now do this with another key i.e. PgDown give this output

state 0x10, keycode 115 (keysym...
0 0
2
KeyPress event, serial 33, synthetic NO, window 0x3600001,
root 0xaf, subw 0x0, time 57835909, (56,-17), root:(59,53),
state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 33, synthetic NO, window 0x3600001,
root 0xaf, subw 0x0, time 57835910, (56,-17), root:(59,53),
state 0x4, keycode 33 (keysym 0x70, p), same_screen YES,
XLookupString gives 1 bytes: (10) ""
XmbLookupString gives 1 bytes: (10) ""
XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3600001,
root 0xaf, subw 0x0, time 57836047, (56,-17), root:(59,53),
state 0x4, keycode 33 (keysym 0x70, p), same_screen YES,
XLookupString gives 1 bytes: (10) ""
XFilterEvent returns: False

KeyRelease event, serial 33, synthetic NO, window 0x3600001,
root 0xaf, subw...

0 0
3

Project Description

SharpKeys is a utility that manages a Registry key that allows Windows to remap one key to any other key. Included in the application is a list of common keyboard keys and a Type Key feature to automatically recognize most keyboard keys. It was originally developed in C# using .NET v2 but has been updated to support .NET 4.0 Client Profile


Original Mission:

This is something that I've thrown together to help people out with their keyboard mappings. What's a keyboard mapping? How many times a day do you accidentally hit cAPS lOCK BY MISTAKE AND END UP HAVING TO GO BAck and retype stuff? For me it was at least once an hour - in fact, I used to pop off the Caps Lock key so I wouldn't hit it anymore, but I found something better in Windows XP, as well as 2000, Server 2003, Vista, and Windows 7. There's a little used registry hack that allows you to remap keys across a keyboard. For me, this meant that I told my computer to treat Caps...

0 0
4
The problem is that they programmed the single click input in a weird way so that they could program a double click input.

There's no lag, and no glitches, this was an intentional design decision, because they were trying to make it so that the mouse could do the job of 5+ buttons. It was probably a bad decision, maybe, but the controls are definitely better than the DS1 port, especially since you guys have such conveniences as block, sprint, and walking lock.

no input lag you say? try attacking with mouse, then pressing H, U or any of the other keys for attacking that isnt from mouse

what you dont seem to understand, is that if its not a problem thats supposed to be possible to be fixed (delay between power and normal attack) then how did i fix this

hell show me you doing a jumpslash or guard break using keyboard and mouse... all i say is good luck timing hitting 2 keys at the same time when 1 of them has a random delay of 0.5 to 1 second

please go...

0 0
5

Summary

The default layout for a Windows computer keyboard is not always the optimal one for a particular user. Several programs exist that allow changing the functions of individual keys like the Caps Lock key or the entire layout and they are discussed here. Registry scripts can also be used and several are provided.

Changing keyboard layouts

Many PC users are unaware that computer keyboard layouts and key assignments are not fixed in stone but can be changed. The hard core tweaker can make changes by editing the scan codes in the Registry key HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout
but most will prefer an easier and less dangerous way. Ever since the Windows 95 Kernel Toys, Microsoft has provided some sort of utility that allowed remapping or changing the functions of keys. Also, there are several free utilities for this task as well as some simple scripts.

Examples of remapping keys

A common reason for...

0 0
6

Whether you’re missing a key on your keyboard or just want to improve your productivity, remapping can be extremely useful.

Remapping keys on your computer’s keyboard allows you to change any key to any other key, allowing you to personalize your keyboard exactly how you like it. Don’t like the location of a particular key? Just change it.

Though we’ve looked at how to remap keys Remapping: The Secret Software Solution To Increase Keyboard Productivity in the past, let’s look now at some ways in which that can be useful.

Improve Your Productivity

Here are a few instances in which you might want to remap your keys, and we’ll go through each of them to see how to do it best.

Computer gaming Browser productivity Launch and switch apps quickly Use a foreign keyboard with ease Use a better keyboard layout Make use of your underused keys Fix a missing key

Interested in any of these? Read on to find out...

0 0
7
I'll show you how you can transform your cheap 5$ keyboard to expensive gaming dedicated keyboards like razor's balckwidow (ofc the quality of your keys will stay the same but those keyboards have very special features like remapping keys, or recording macros). This tutorial will show you how to do just that, with any keyboard.
Starcraft 2 let's you rebind almost any key in the hotkey setup, but not every key. For example you can't change modifiers like Shift or Ctrl etc. So basically, you can't change that in Starcraft 2 alone, unless you have expensive keyboard or you use 3rd party software, and sometimes you want to do it...

You will need 3rd party software called AutoHotkey.
(some of you may already know about this software, and how to use it - great stop reading, you will find nothing new here i believe.)
AutoHotkey - Download link (click)
How to install

Short tutorial how to create a simple script:
+ Show Spoiler +

1. Right-Click on your...

0 0
8

I couldn’t tell if this was covered in another post, so I thought I would pass it on.

If you are using an external keyboard (via Bluetooth or usb), you may find that certain basic android key events (home, back and menu) are either missing or not logical. In my case, my Bluetooth keyboard had no way to return home or open menus for apps, requiring me to use both the edge hardware keys as well as the keyboard. To address this, you can try the following:

NOTE: While this worked for me, I can’t guarantee results for other keyboards. And, as always, back up files before making any changes.

Before you start, here are some helpful tools/links:

Android keymaps overview and handy tool – Within this site is a handy tool called “KeyTest” It is a very simple android app that helps you find what number corresponds to a given key on the keyboard. Android keycodes – This page lists all the common android events that can be attached to a key. We are only...
0 0
9

Q: How can I disable one or several keys of my laptop keyboard in Linux? When I press DELETE key it gets stuck and deletes everything

A: No problem! You can use the following command to remap or disable any key of your keyboard:

xmodmap -e 'keycode ='

For example, run the following to disable your DELETE key: xmodmap -e 'keycode 107='. BTW you can get keycode that corresponds to certain keyboard button by using simple command xev

The full list of available keycodes and actions assigned to them on UK keyboard is below…

keycode 8 =
keycode 9 = Escape
keycode 10 = 1 exclam
keycode 11 = 2 quotedbl
keycode 12 = 3 sterling
keycode 13 = 4 dollar
keycode 14 = 5 percent
keycode 15 = 6 asciicircum
keycode 16 = 7 ampersand
keycode 17 = 8 asterisk
keycode 18 = 9 parenleft
keycode 19 = 0 parenright
keycode 20 = minus underscore
keycode 21 = equal plus
keycode 22 = Delete
...

0 0
10

Broken keyboard keys seem to be quite a common occurrence these days on laptops and netbooks. Although it’s not a terrible problem if the key press still registers even without the plastic key, it is quite difficult if a common key doesn’t work at all. It’s not easy to type anything if your A or E key or even space bar doesn’t work! Maybe there’s a few keys on your keyboard you keep hitting by mistake such as Caps Lock, or would just like a certain key to be in a more convenient location. If there’s a key on your keyboard you never seem to need, why not change it to make it more useful?

Of course, the more technical minded people could turn to a Macro tool which can help you remap keys on a keyboard or even to perform more complicated tasks for you, or run a shortcut / hotkey utility. These though have the disadvantage of needing to be present in memory at all times for the effect to work. But simply mapping a broken or unused key to another key on the keyboard doesn’t have...

0 0
11

For most people, Caps Lock is only an obstacle to avoid while typing. Having Caps Lock do nothing at all would be an improvement. You don’t have to pry Caps Lock off your keyboard — you can disable it.

You can also remap Caps Lock to use that prime keyboard real estate for something useful. Here are instructions for doing this on Windows, Linux, Mac OS X, Chrome OS, iOS, and Android.

Windows

Windows doesn’t provide a nice, easy graphical option for controlling your Caps Lock key. Instead, you’ll need to remap the key in the registry. Don’t worry — we’ll make this easier than it sounds!

There are several ways you can do this. By changing the Scancode Map value in the registry, you can remap your Caps Lock to function as another key or even do nothing at all when you press it. Download our .reg files to do this in a few clicks or learn how to modify the Scancode Map value on your own. You can still use Caps Lock for some functions after...

0 0
12

Here is how I tried to switch the mapping of the ENTER key to the SHIFT key (and vice versa):

$ uname -a

REPORTS:

Linux box 2.6.32-37-generic #81-Ubuntu SMP Fri Dec 2 20:35:14 UTC 2011 i686 GNU/Linux $ which xmodmap

REPORTS:

/usr/bin/xmodmap $ which xev

REPORTS:

/usr/bin/xev $ xev

(ignore the next fifty lines or so)

PRESS THE ENTER KEY (notice the third line): KeyPress event, serial 33, synthetic NO, window 0x5600001, root 0x110, subw 0x0, time 263441120, (738,242), root:(771,314), state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES, XLookupString gives 1 bytes: (0d) XmbLookupString gives 1 bytes: (0d) XFilterEvent returns: False KeyRelease event, serial 33, synthetic NO, window 0x5600001, root 0x110, subw 0x0, time 263441271, (738,242), root:(771,314), state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES, XLookupString gives 1 bytes: (0d) XFilterEvent returns: False PRESS THE SHIFT KEY (notice the third line):...
0 0
13

You can configure VNC Server using its parameters either on the Options > Expert page or at the command line.

Note that:

VNC Server parameters override equivalent VNC Viewer parameters unless otherwise stated. Changes made to parameters on the Expert page take effect as soon as the Apply button is clicked, unless otherwise stated.

AcceptCutText

Specify FALSE to prevent connected VNC Viewer users pasting text to the VNC Server computer.

See also: SendCutText, ClipboardFT

AcceptKeyEvents

Specify FALSE to prevent connected VNC Viewer users controlling the VNC Server computer using their keyboards.

Use in conjunction with AcceptPointerEvents to make connections view-only, and with AcceptCutText, SendCutText, ShareFiles, and EnableChat to prevent all user interaction with the computer.

AcceptPointerEvents

Specify FALSE to prevent connected VNC Viewer users controlling the VNC Server computer using their...

0 0
14

Keyboard layouts in Ubuntu are stored in /usr/share/X11/xkb/symbols/. The easiest way to get your desired result is to create a new layout by copying an existing one. Choose the one you are using at moment (you can have a look inside the files to find see the user friendly name of a layout). So for English (US) type

sudo cp /usr/share/X11/xkb/symbols/us /usr/share/X11/xkb/symbols/us_math

into a terminal window. Now you have to edit the key specifications of the number keys. Open the file for editing, for example:

gksudo gedit /usr/share/X11/xkb/symbols/us_math

Search for the layout variant you are using, in the case of English (US) you will find it at the beginning of the file:

name[Group1]= "English (US)";

Change this text to:

name[Group1]= "English (math)";

Below you see the definition of the particular keys. Change (or insert, if you are using a variant that doesn't explicitly define these keys) the entires for keys AE01 to AE10. In our example we...

0 0
15

A utility that accelerates your normal computer workflow.


Active Keys 2.3

[ 2005-09-01 | 1.6 MB | Shareware $25.00 | Win All | 17238 | 3 ]

A tool for creating and managing keyboard shortcuts.

AlomWare Actions Lite is the Swiss Army Knife of app launchers, it will replace many common apps you may be using by allowing you to streamline your work flow and more.

AlomWare Lights is a small app that shows the LED status of the Num Lock, Caps Lock, and Scroll Lock keys at the bottom-right corner of your PC's desktop (next to the clock).

An Alt-Tab replacement utility for Windows XP


AlwaysMouseWheel allows you to use the

mouse wheel

to scroll over any windows even if that window is not in the foreground.


AutoHideMouseCursor is a small portable tool that allows you to set specific times for your

mouse cursor

to disappear from the screen.


AutoHotkey gives you fast, scriptable...

0 0
16

Remote Control[edit]

Comcast URC-106XXXXX Silver Remote

The Motorola DVR can be operated with a variety of remote controls. Cable operators are not locked into a specific model, though two forms of the "silver remote" (one with DVR-specific controls at the top and one without) are the most common. Both of these remotes are programmable - most of the buttons can be remapped to support functionality that is either not normally deployed (30-second skip) or that is missing (tuner swapping on the non-DVR specific remote). Some remotes supplied by cable operators (one of which is commonly called the "brown" remote) are not programmable.

The silver remote is made by Universal Electronics, and uses the same codes and commands as the 'One-For-All' series. You can find information on programming these remotes at hifi-remote.com. The silver remote has a 6-pin connector next to the batteries and is JP1.2. As of September 2006, there is now a cable and software that...

0 0
17

I recently got the Microsoft Surface Pro (64 GB), and I’ve been using it heavily for the last couple weeks. Here are my thoughts on Windows 8, the Surface Pro hardware, and the accompanying Type Cover.

Windows 8

You’ll hear a bunch of people deriding Windows 8 because it’s cool to do so, or because they’re using a desktop system (more the latter than the former, hopefully). I can see how the new start menu would be really weird without a touch interface, but if you have that then it’s nice.

I came from a netbook, so I have no idea if what I’m experiencing is an improvement in hardware or the operating system (or both), but everything is amazingly fluid. I catch myself in a moment of mild disappointment each time I see dropped frames or a second of stutteryness, because the rest of the time it’s nearly flawless.

As for change: What you think of the new system depends on how you used the old one. When I hit my Windows key (and I’d rarely use the button...

0 0
18
...
0 0
19

Apple makes some of the best input devices on the market, from the aluminum keyboard to the Magic Trackpad—but they aren’t for everyone. I’m going to show you a few ways to configure and use alternative input devices on your Mac.

Why Would I Want To Use an Alternative Keyboard and Mouse?

Good question! The Apple keyboards, mice and trackpads are very, very good and well-built. However, you may find them uncomfortable to use. There is no such thing as a keyboard or mouse that everyone can use comfortably. As Apple only makes one type of keyboard, two types of mouse and a trackpad, not everyone will be able to use them.

Greater Choice

Your Mac is capable of using almost any USB or Bluetooth input device. If it’s a keyboard or mouse, your Mac can start using it straight away - just connect it. This means that pretty much any keyboard or mouse on the market can be used. Prefer using a gaming keyboard or mouse? Have a really old mouse you just find more...

0 0