LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-02-2012, 08:28 PM   #1
zeeh
LQ Newbie
 
Registered: May 2012
Posts: 3

Rep: Reputation: Disabled
remap using xmodmap


The o key on my keyboard doesn't work So how could I swap the # key on my keyboard with o using xmodmap?
 
Old 05-04-2012, 05:48 AM   #2
rizzy
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 285

Rep: Reputation: 69
Welcome to the forums.
Yes, this can be changed easily. First find out the code of your # key using xev command, then use:
xmodmap -e 'keycode XXX=o'
Replace XXX with keycode you got from xev.
 
Old 05-06-2012, 09:18 AM   #3
zeeh
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
hi thanks fr yr replying mate

i have tried the method u have mentioned before but it doesnt seem to wrk

it changes the keycode on xev

keycode for # is 49
whn i use xmodmap to remap it o and then check xev key code list for code 49 it shows it as o
but when i press # later on it still prints # nt o
 
Old 05-07-2012, 05:37 AM   #4
rizzy
Member
 
Registered: Mar 2004
Distribution: Debian
Posts: 285

Rep: Reputation: 69
The command needs to be executed on every X login, place it as a start up item so it sticks.
 
Old 05-07-2012, 03:47 PM   #5
zeeh
LQ Newbie
 
Registered: May 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
this might make me sound "thick"

but do you think you could walk me through it?

cheers
 
  


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
[SOLVED] Key remap interndan Slackware 14 03-08-2012 11:27 AM
Centos 5.6, Gnome terminal, Xmodmap: remap multiple keystrokes? needsleep Linux - Newbie 4 06-09-2011 08:02 AM
remap us to uk props666999 Slackware 3 01-21-2005 04:01 AM
Key remap Silverdaz Fedora 0 06-23-2004 08:28 AM
How do I remap keys? LooseCanon Linux - Newbie 1 08-27-2003 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:38 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
Open Source Consulting | Domain Registration