Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
keymaps
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
pindar
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 220

PostPosted: Thu May 13, 2004 11:19 am    Post subject: keymaps Reply with quote

I modified the default i386/qwerty/us.map slightly to have the grave and asciitilde on the same keys as I'm used to under os x. It works wonderfully, I'm just wondering about some points:

1. If I upgrade the system later, could this modified keymap get overwritten by a new default one? So would it be safer to give it a different name?

2. I assume a safe option against this would be to put the keymap file into my home folder and give the location in rc.conf like so
Code:
KEYMAP=/home/me/keymap_file

However, the keymap contains a number of "include"-lines:
Code:
# us.map
keymaps 0-2,4-6,8-9,12
alt_is_meta
include "qwerty-layout"
include "linux-with-alt-and-altgr"
include "compose.latin1"
include "euro1.map"
strings as usual

They don't give any absolute paths. Will they continue to work even if the keymap itself resides in another directory?

Sorry if these questions sound stupid, but I don't dare to just try it because I fear I might not even be able to reboot if my keymap is totally jinxed.

Thanks

Thomas
Back to top
View user's profile Send private message
SeJo
Retired Dev
Retired Dev


Joined: 08 Oct 2002
Posts: 298
Location: Belgium

PostPosted: Fri May 14, 2004 6:26 am    Post subject: Reply with quote

these paths are looked up by the system i thought....
why don't you try if it doesn't work is it simple the case to reboot with livecd
and change it back. but i wouldn't remove the location...
just put it back in the dir... where you changed it from.

if you set up the keymap exactely as it should be in mac, could you please send it to me, then i'll add it to the distribution...


greetings
_________________
"I am not bound to please thee with my answers."
Back to top
View user's profile Send private message
gnomeza
Tux's lil' helper
Tux's lil' helper


Joined: 31 Dec 2003
Posts: 97

PostPosted: Fri May 14, 2004 9:52 am    Post subject: Reply with quote

Somewhat related, possibly useful:

An XKB keymap for the G4 Alubook with gb keyboard (as available from the UK apple store):
http://l003026.zseriespenguins.ihost.com/~gnome/gentoo/gb_g4_alubook

Would be nice to see this as an "alubook" variant in the XKB macintosh/gb symbols file.

Selected with:
Code:
Option      "XkbModel"    "powerbook"
Option      "XkbLayout"   "gb_g4_alubook"
Back to top
View user's profile Send private message
pindar
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 220

PostPosted: Mon May 17, 2004 9:34 am    Post subject: Reply with quote

OK, I bit the bullet and tried - works.

1) Copied /usr/share/keymaps/i386/qwerty/us.map to ~; ran gunzip.

2) Modified map [@SeJo: There really isn't much to post right now; the only modification I made was to assign "grave" and "asciitilde" to keycode 86, that's the key between Shift and "Z"], changed name to usnew.map, gzipped.

3) Changed path to new keymap in /etc/rc.conf:
KEYMAP="/home/tas/usnew"

Rebooted. Works. That way, I'll be sure it won't get overwritten when the /usr/share/keymaps directory gets upated.

@gnomeza: I haven't looked into xkbmap yet, I find the file format impenetrable. I'll have to, though: I put an .Xmodmap file into my home directory which magically works (I made no other changes to my X configuration); I now have the "Apple" key as Meta and "Option" as Mode_Shift in most X-applications, so my dead accents work like in OS X. Only exception is OpenOffice. I suspect I need to look into xkbmap to fix this.

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum