LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   A way to change 'Esc' key to '~' key in the keyboard? (http://www.linuxquestions.org/questions/linux-newbie-8/a-way-to-change-esc-key-to-%7E-key-in-the-keyboard-4175455341/)

stf92 03-24-2013 03:52 AM

A way to change 'Esc' key to '~' key in the keyboard?
 
What's asked.

mddesai 03-24-2013 05:31 AM

How to disable/remap a keyboard key in Linux?

DavidMcCann 03-24-2013 12:30 PM

The Spanish American keyboard has a printing tilde ("swung dash") at AltGr 4/$ and a variant with a dead tilde (for Portuguese) at AltGr +/*. You should be able to select the variant with KDE's keyboard configuration tool.

stf92 03-24-2013 06:31 PM

Is it preserved when getting into a console (/dev/ttyN), N=1,...,6? In fact, all I am interested in is the six (in my case) text consoles (aka virtual consoles).

stf92 03-24-2013 07:28 PM

Code:

# loadkeys -
Loading <stdin>
keycode 41 = Escape Escape
keycode 1 = grave asciitilde

Then, ^D. That's what I did. Now when I press the tilde I get Esc and vice versa, a very convenient thing when in vim, given that the Esc key was out of reach in my keyboard. (Not taken from the internet.)


All times are GMT -5. The time now is 02:54 PM.