LinuxQuestions.org
Help answer threads with 0 replies.
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 04-14-2006, 08:56 AM   #1
mayasedai
Member
 
Registered: Jan 2005
Location: scotland
Distribution: ubuntu
Posts: 51

Rep: Reputation: 15
'£' sign on us keyboard


i have a us keyboard layout on my laptop, and i'm trying to map a key for the '£' sign. there are 2 keys on the bottom left [next to the up-down arrows] which are for the $ and euro symbols but they dont work at all... although i have another $ key so i dont need another one. what i do need is a key for the £ sign, and i want to change the extra $ key to do that. while i'm at it, i might as well get the currently defunct euro key to give the euro symbol. any pointers on how to do this?
 
Old 04-14-2006, 08:59 AM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Couldn't you just change the keymap to British? Then Shft+3 would be pound and Shft+4 would be dollar.
 
Old 04-14-2006, 09:02 AM   #3
mayasedai
Member
 
Registered: Jan 2005
Location: scotland
Distribution: ubuntu
Posts: 51

Original Poster
Rep: Reputation: 15
but that would change keys for other symbols like @ and " etc. wouldnt it
 
Old 04-14-2006, 09:49 AM   #4
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
There is a 'simple' (well, it's simple once it's solved, just like everything else...) solution, providing you're using X - xmodmap

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

I had a situation where my letter 'g' key fell off the keyboard (laptop) and I don't feel like having it repaired, so I remapped the 'g' key to the 'windows' key (which, obviously, is never needed)

So, in my /home is the .Xmodmap as follows:

keycode 115 = g

cheers,
 
Old 04-14-2006, 09:58 AM   #5
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Depends whether you're talking about the console or X.

Console keymaps live under /usr/share/kbd/keymaps/*, edit your us map and reload it with loadkeys. Or copy it to a custom name and modify your rc file to load that one (/etc/rc.d/rc.kbd on Slackware).

In X, create ~/.Xmodmap and put 'xmodmap ~/.Xmodmap' in your .xinitrc/.xsession.

e.g. In X, I have £ on Mode-Switch + 3.

Code:
keycode 12 = 3 numbersign sterling EuroSign
keycode 113 = Alt_R Mode_switch
Thus, I get a £ by pressing shift-altgr-3, though this might be a bit cumbersome for you if you need to use £ a lot. Of course, you can bind it to whatever you want. Use xev to find out the keycodes.

The console keymap uses a similar syntax, I have this:

Code:
keycode   4 = three            numbersign       pound
So shift-3 is # and altgr-3 is £.
 
Old 04-14-2006, 10:14 AM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally Posted by mayasedai
but that would change keys for other symbols like @ and " etc. wouldnt it
Specifically those two would switch positions.

Personally, my laptop keyboard is UK layout, but I have mine mapped to a US layout because I'm more used to it. The only thing I don't have is a pound sign but I don't really need it.
 
Old 04-14-2006, 11:08 AM   #7
mayasedai
Member
 
Registered: Jan 2005
Location: scotland
Distribution: ubuntu
Posts: 51

Original Poster
Rep: Reputation: 15
thanks for your responses

Quote:
Originally Posted by ioerror
Depends whether you're talking about the console or X.
both actually, but for now i'd be happy to get it on X. i tried both xev and xkeycaps, but it seems that those 2 keys are not recognised at all by the system, i.e, on xev i get nothing when i press them.
i'm running an acer travelmate 2312 nlci machine, and in my keyboard layout i've specified 'acer travelmate 800' since thats the closest match in the list. is that a problem?
how do i get the system to acknowledge these 2 keys?
 
Old 07-23-2006, 01:31 PM   #8
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
Ctrl-Shift-a3 seems to also work.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
sign on invisible in gaim - NOT invi after sign on saravkrish Linux - Software 7 09-12-2005 10:55 PM
can't sign in as root howarddevore Debian 6 07-18-2005 01:16 PM
sign in hythemr Red Hat 1 08-31-2003 07:52 PM
$,# sign eye Linux - Software 2 05-31-2003 09:00 AM
linux sign eye Linux - Software 3 05-24-2003 09:20 AM

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

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