LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-04-2007, 12:42 PM   #1
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Making a normal key work as ALT?


Hi.

I am wondering if there is a way to make a certain normal key work like the ALT key? I am asking because the keyboard I just bought has an extra key between the spacebar and the ALT key. The key is '<' and '>' (shifted), but those characters already exist on the existing keys. Besides, I am so used to having the ALT key where this extra key is, I keep hitting it when I mean to use ALT. And I use ALT a lot.

So I'd like to make this extra key behave like the ALT key. The key seems to have a unique keycode so I would imagine it is possible to assign that keycode to ALT. I just don't know how to do that.

Any help would be appreciated.

Dai

(PS) I am using CentOS 4.5.
 
Old 10-05-2007, 04:59 AM   #2
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Look up xmodkey. Also to check to find if your desktop/window manager has way to add shortcuts. X Window System (Xorg 7 or higher) can modify keys. Though the utility xmodmap is the one to use to modify the keyboard for the whole entire setup even in bash.
 
Old 10-05-2007, 11:33 AM   #3
daihard
Member
 
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Original Poster
Rep: Reputation: 34
Quote:
Originally Posted by Electro View Post
Look up xmodkey. Also to check to find if your desktop/window manager has way to add shortcuts. X Window System (Xorg 7 or higher) can modify keys. Though the utility xmodmap is the one to use to modify the keyboard for the whole entire setup even in bash.
Thanks much! I have been able to assign the key to ALT ("Alt_L") by the following command.

$ xmodmap -e "keycode 94 = Alt_L"

I placed the expression inside the parentheses to my ~/.Xmodmap to automate the operation.

Thanks again for your help!

Dai
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALT+B, ALT+F key combinations in xterm don't work nIMBVS cAos 4 12-15-2011 02:52 AM
alt key doesn't work in AbiWord, XChat, Firefox Drone4four Slackware 3 06-09-2007 12:53 AM
How do I get Right-Alt key to be just Alt and not generate special characters? (KDE) KWTm Linux - General 2 06-25-2005 10:26 PM
ALT-GR key does not work learnfast Linux - Newbie 1 03-10-2005 05:36 PM
ALT GR key doesn't work? Dipp Linux - General 4 04-03-2003 03:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:25 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration