LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-31-2012, 01:20 PM   #1
clofal
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
Keyboard remapping, Custom key combinations


My tab key is slowly dying on me. I have to press it harder and harder each time. I took the key off and cleaned the dust and crud out. No help.

What I want to do is use a combination of two keys to emulate the tab key. Such as "Ctrl+`" or some other combination that is never used.

Running Ubuntu 11.10

Any help is appreciated!
 
Old 02-01-2012, 10:59 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Ubuntu Howto: Custom keyboard layout definitions
 
Old 02-01-2012, 12:00 PM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
You could always put tab on a singe key that's never (Pause? Scroll lock?) or seldom (Caps lock) used. The approved way is to create a bash script that runs at log-in and uses xmodmap commands. The quick and dirty way is to edit /usr/share/X11/xkb/keycodes/evdev and swap the codes for TAB and whatever you decide to use.
 
Old 02-04-2012, 12:45 AM   #4
clofal
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
I ended up swapping caps lock and tab using xmodmap. Altered the ~/.Xmodmap and just swapped the two keycodes. I think they were 23 and 66 for anyone else who wanted to do this. Also make sure to clear the caps lock afterwards, otherwise every press of caps lock will tab and also caps.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
remapping an F-key to a string of text? dhuberma Linux - Newbie 3 03-21-2013 09:01 AM
Disabling certain key combinations sreeharsha.t Linux - Software 1 12-29-2009 10:45 AM
[SOLVED] Disabling Key combinations in X sreeharsha.t Linux - Software 2 09-07-2009 11:19 PM
Remapping ksh key bindings Zmyrgel Linux - Software 0 12-04-2008 02:19 PM
Key remapping erickFis Slackware 0 02-12-2004 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration