Questions tagged [remap]

257 questions
8
votes
1 answer

Is there any way to swap the fn (function) and control keys in linux on an macbook pro?

I don't care if this is done in the bios or a kernel module or software. Is there any way at all to do make the 'fn' key act as 'control' and the 'control' key act as 'fn' in linux running on a macbook pro? PS. You can do this with software in OSX…
user125534
8
votes
1 answer

Remap `fn` to left mouse button on OSX

I get bad tendinitis from clicking the mouse all day. In the past I used Karabiner to remap the fn key to simulate a left mouse button. However it doesn't work with Sierra. I tried to accomplish this in Cocoa, and it correctly performs…
P i
  • 29,020
  • 36
  • 159
  • 267
8
votes
3 answers

How to disable a built-in command in vim

In vim, when I hit :wq it is almost always an accident that occurred when attempting to input :w. I would like to disable :wq. The closest I found is cmap, but it has some odd behavior. If I do something like :cmap wq w I can no longer even input…
user85509
  • 36,612
  • 7
  • 33
  • 26
7
votes
3 answers

How to remap keys when in Emacs?

I am looking for a way to have my control key and caps-lock key switched when I am in the emacs window, but when I go to any other program such as Firefox I want to be able to use the normal control button for new windows, tabs and such. Additional…
Anton
  • 12,285
  • 20
  • 64
  • 84
6
votes
1 answer

OpenCV remap interpolation error?

I'm using opencv remap function to map an image to another coordinate system. However, my initial tests indicate that there are some issues with the interpolation. Here, I give a simple example of a constant 0.1 pixel shift for a image that is 0…
Julian S.
  • 440
  • 4
  • 14
6
votes
4 answers

Remap keys in OS X

Specifically I'm attempting to map my MacBook's fn key to left mouse click. Back in the old days when I was using Windows, I came across a wonderful little utility that let me map anything to anything: http://www.autohotkey.com/ You create a little…
P i
  • 29,020
  • 36
  • 159
  • 267
6
votes
2 answers

Remap Vim keys to avoid RSI in left hand

I always suffered from RSI in my left wrist (see here) and I thought it was because of the twisting motion associated with hitting the ctrl and shift keys. Therefore, I went ahead and bought an Advantage Kinesis keyboard shown below: However, even…
puk
  • 16,318
  • 29
  • 119
  • 199
5
votes
0 answers

Remap key within remmina doesn't work

I am running x-window on my linux pc, with remmina to remote access windows xp PC I've swapped capslock and left ctrl in my Xmodmap file, and load it in xsession file. Here is my Xmodmap file, located at ~/.Xmodmap …
hero2008
  • 611
  • 6
  • 16
5
votes
2 answers

How to use tf_remap?

I have a rosbag in which a /tf topic is recorded. I need to remap all tf frames in that bag which refer to the frame named /world to refer to a new frame named /vision. I tried the following but it's unfortunately not working: rosrun tf tf_remap…
Beginner
  • 325
  • 5
  • 16
5
votes
1 answer

Can I remap a shared POSIX mutex while it is locked?

Assume that the shared POSIX mutex has allready been initialized (using PTHREAD_PROCESS_SHARED). Then, consider the following procedure: typedef struct { pthread_mutex_t mutex; // ... } Shared; Shared *shared = (Shared *)mmap(...); //…
Kristian Spangsege
  • 2,903
  • 1
  • 20
  • 43
5
votes
1 answer

Override Caps Lock with Ctrl using C#

I'm writing (yet another, I know) keyboard remapper using C# and Visual Studio 2008. I followed this guide to learn how to snap up low-level key presses. This works just fine for overriding e.g. normal alphabetical characters on my keyboard, but I…
Deniz Dogan
  • 25,711
  • 35
  • 110
  • 162
4
votes
1 answer

OSX: Programmatically remap Caps Lock's functionality (as set via System Preferences)?

My question is referring to the System Preferences setting that enables you to remap Caps Lock to e.g. Ctrl key. ^ Is it possible to affect this setting programmatically? Primarily I'd be interested achieving this via defaults or some shell trick;…
Henrik
  • 2,421
  • 4
  • 25
  • 33
4
votes
5 answers

What is the best way to remap a Hash in Ruby?

Is there a simple way of remapping a hash in ruby the following way: from: {:name => "foo", :value => "bar"} to: {"foo" => "bar"} Preferably in a way that makes it simple to do this operation while iterating over an array of this type of…
Fredrik Boström
  • 1,499
  • 1
  • 19
  • 22
4
votes
1 answer

inoremap: variable timeoutlen

I have two remaps in my .vimrc for the insert mode: inoremap jk inoremap { {} The first remap should have a short timeoutlen, whereas the latter should have no timeout at all. Reason: I need a timeout for the first remap, as jk might…
earthling
  • 620
  • 6
  • 20
4
votes
2 answers

How to undistort I420 image data? Efficiently

I am able to undistort RGB image successfully. Now, I am working on directly undistort I420 data, instead of first converting it to RGB. Below are the steps I followed after camera calibration. K = cv::Matx33d(541.2152931632737, 0.0,…
Jai
  • 377
  • 2
  • 14
1
2
3
17 18