LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2007, 12:09 AM   #1
anitha.mit
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Rep: Reputation: 0
How to assign keysym?


Hi all,

I want to assign keysym for particular keycode. I used the command 'xmodmap -e "keycode 132 = AudioStop" for stopping the audio in command prompt. keycode 132 is not already assigned and i knew it using the commad 'xmodmap -pk'. Im having the following line in my XkeysymDB file,
#define XF86XK_AudioStop 0x1008FF15
andso i used AudioStop as keysym here. But it was not assigned and the following error produced,

sh-3.00# xmodmap -e "keycode 132 = AudioStop"
xmodmap: commandline:1: bad keysym name 'AudioStop' in keysym list
xmodmap: 1 error encountered, aborting.

I want to know is there wrong in my assigning keysym value? How to add new keysym values to the keycodes which is not assigned in xmodmap?

Regards,
anitha..
 
Old 12-18-2007, 03:23 AM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,036

Rep: Reputation: 96
Have you tried:
Code:
xmodmap -e "keycode 132 = XF86XK_AudioStop"
 
Old 12-18-2007, 04:23 AM   #3
anitha.mit
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Original Poster
Rep: Reputation: 0
keysym..

Hi,

I tried that command, it worked for me... Thank u...
Also i want to know is it possible for us to change the keycode of a certain key?

Regards,
anitha..
 
Old 12-18-2007, 03:47 PM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,036

Rep: Reputation: 96
Have a look at the following site:

http://web.mit.edu/answers/xwindows/...s_xmodmap.html

You might want to try xkeycaps
 
Old 12-20-2007, 06:47 AM   #5
anitha.mit
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Original Poster
Rep: Reputation: 0
problem in assigning keys..

Hi,

I used setkeycodes command for assigning keycodes for the keys with the scancode i got from 'showkey -s' command. After assigning the keycodes i checked the output with 'showkey -k' command and 'xev' command. In 'showkey -k' command i got the output keycodes as what as assigned. But using xev command, some keys takes keycodes of the already assigned keys.If i try to change that keycode both of the keys got affected. How can i change the particular keycode?

Regards,
Anitha..
 
  


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
KeySym: Preventing repeat keys GotWookiee Programming 3 02-12-2008 01:13 PM
how to assign a host name? Mountain Linux - Newbie 9 11-07-2007 06:07 PM
Skippy is only giving me errors (keysym) and no help juyce Linux - Software 0 04-22-2006 12:38 AM
How to assign shortcouts? Xiangbuilder Linux - Newbie 2 08-31-2003 08:46 AM
Keysym remapping - keyboard shortuts in a shell: how to define modifiers? larus_marinus Linux - General 0 07-03-2003 10:52 AM


All times are GMT -5. The time now is 06:42 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