[sclug] The Euro Sign (Solved (Well almost :-) )
Tom Dawes-Gamble
tmdg at tmdg.co.uk
Sun Nov 2 23:29:46 UTC 2003
Opps I didn't send this to the list. But since sending it
I tried to fool X into thinking I had a UK keyboard.
$ cat /etc/sysconfig/keyboard
KEYBOARDTYPE="pc"
KEYTABLE="uk"
$ rpm -q kbd
kbd-1.08-4
$ rpm -q XFree86
XFree86-4.3.0-2
XF86config now has
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "gb"
EndSection
moved .Xmodmap out of the way and
I killed X <alt><ctrl><backspace>
but no joy.
Just to see what happens I've tried switching the keyboard without
restarting X and the Danish keyboard appears to enable the Right windows
key so Win_Right ' e gives an ? even after that switching to a UK
keyboard still doesn't have the Win keys enabled.
I'll have a go with a physical UK board tomorrow I'm sure I have one
here some place. :-)
Regards.
Tom.
On Sun, 2003-11-02 at 22:58, Tom Dawes-Gamble wrote:
> On Sun, 2003-11-02 at 18:19, lug at assursys.co.uk wrote:
> > On Sun, 2 Nov 2003, Tom Dawes-Gamble wrote:
> >
> > > $ cat .Xmodmap
> > > keycode 0x0c = 3 numbersign sterling
> > > keycode 0x0d = 4 dollar EuroSign
> > > keycode 0x71 = Mode_switch
> > >
> > > that seems to work as I want it to. But I'd like to do it globaly.
> >
> > /etc/X11/Xmodmap then.
>
> Hmmm yes but that says.
>
> ! global Xmodmap file -- used by both xdm and xinit (startx)
>
> ! keycode and keysym remapping should generally be used only if the X
> ! server does not use the XKEYBOARD extension (i.e., there is a
> uncommented
> ! line "XkbDisable" in the keyboard section of /etc/X11/XF86Config)
> So I guess it's not the ideal way of doing it.
>
>
> > > > Personally, though, I prefer to enable the right Windows key as a compose
> > > > key:
> > > > <http://groups.google.com/groups?hl=en&lr=lang_en&ie=UTF-8&threadm=pan.2003.10.09.10.18.37.41228%40ntlworld.com&rnum=1&prev=/groups%3Fq%3Dalex%2Bbutcher%2Bpc105%26hl%3Den%26lr%3Dlang_en%26ie%3DUTF-8%26scoring%3Dd%26selm%3Dpan.2003.10.09.10.18.37.41228%2540ntlworld.com%26rnum%3D1>
> > > > for details.
> > > >
> > >
> > > This is good stuff IF you have a UK keyboard. I don't it's a
> > > US keyboard with '#' over the '3' and '@' over '2' so the UK/US layout
> > > is very different.
> >
> > Why would that make any difference?
> >
> > Can't you just use pc105 + us instead of pc105 + gb ? That should work the
> > same way?
> >
>
> Well I was basing that on the fact the the Danish keyboard gave me Alt_R
> e for the Euro but I could not find it on a UK keyboard.
>
> Currently I have in XF86Config is :-
>
> Section "InputDevice"
> Identifier "Keyboard0"
> Driver "keyboard"
> Option "XkbRules" "xfree86"
> Option "XkbModel" "pc105"
> Option "XkbLayout" "us"
> EndSection
>
> Then from your post.
>
> Right Windows Key (then release), shift+# (~) (then release release), n
>
> I convert to
>
> Right Windows Key (then release), shift+` (~) (then release release), n
>
> and what I get is ~n so it doesn't work.
>
>
> > > With the way windows does it I can go to any PC and key <alt>156 or
> > > <alt>0128 and it works.
> >
> > You find remembering random ASCII codes easier than the shapes of the
> > characters you want to type? You strange person, you!
> >
>
> No it's not that easy, the <alt>156 I learnt years ago before we had UK
> keyboards. <alt>0128 I only learnt on Friday and it's not that
> difficult to remember 128 :-). I'm strange yes. It doesn't alter the
> fact that I found a solution in fifteen minutes for Windows. Given I
> don't use Windows other than as an dumb user would and I found the
> solution from www.microsoft.com. I still don't have an ideal solution
> in the Linux arena and I've been looking for hours.
>
> Anyway I'm going to have a play with a UK keyboard and see what I can
> come up with. :-)
More information about the Sclug
mailing list