You are not logged in.

#1 2010-09-16 22:09:22

CaptainPoutine
Member
Registered: 2010-09-16
Posts: 5

rc.conf: loading keymap from path other than default

Hi,

I quickly noticed that the "us" keymap uses the right alt as AltGr (include "linux-with-alt-and-altgr"), which seems to be an "international" layout. What's the preferred way to change this?

I created a new map (poutine.map), which changes that line to "linux-with-two-alt-keys". Following a Wiki article[1], I put it in /usr/local/share/kbd/keymaps to follow best practices and to avoid its being overwritten during upgrades. So now my questions:

1. Will the system find the map there?
2. If not, how do I specify a path?
3. Is rc.conf only read at boot time, or is there a way to re-load it with the system running?

I'm only interested in the console for now.

[1]http://wiki.archlinux.org/index.php/Ext … in_Console

Last edited by CaptainPoutine (2010-09-16 22:11:17)

Offline

#2 2010-09-16 22:17:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: rc.conf: loading keymap from path other than default

According to the wiki

loadkeys /usr/local/share/kbd/keymaps/personal.map

should load the desired keymap, no need to restart.

On my system I have the keymaps in /usr/share/kbd/keymaps/

Offline

#3 2010-09-16 22:42:04

CaptainPoutine
Member
Registered: 2010-09-16
Posts: 5

Re: rc.conf: loading keymap from path other than default

I'm using loadkeys now interactively. But I would like to do this in rc.conf instead.

Offline

#4 2010-09-16 22:45:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: rc.conf: loading keymap from path other than default

Doesn't

loadkeys -q /usr/local/share/kbd/keymaps/personal.map&

in rc.local work?

Offline

#5 2010-09-16 23:53:50

CaptainPoutine
Member
Registered: 2010-09-16
Posts: 5

Re: rc.conf: loading keymap from path other than default

OK, that works. I'm still curious about how rc.conf works, but this seems reasonable. Thank you.

Last edited by CaptainPoutine (2010-09-17 01:21:00)

Offline

#6 2010-09-17 05:21:00

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: rc.conf: loading keymap from path other than default


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#7 2010-09-17 11:31:20

CaptainPoutine
Member
Registered: 2010-09-16
Posts: 5

Re: rc.conf: loading keymap from path other than default

The KEYMAP article does not describe
* The full list of paths used by rc.conf ("most keymaps can be found in...less common...keymaps can be found in...")
* Where these paths are set (source code? some other config file?)
* How to add a new path to that list, since my keymap is NOT located in either of the paths mentioned in the KEYMAP article.

I welcome being told to "RTFM" when the "M" addresses my question. In this case, it doesn't, which is why I posted.

Last edited by CaptainPoutine (2010-09-17 11:41:32)

Offline

#8 2010-09-17 11:53:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: rc.conf: loading keymap from path other than default

rc.sysinit sets the keymap using loadkeys. 'man loadkeys' will tell you more, but I'm sure you've already read it, right?
As I wrote https://bbs.archlinux.org/viewtopic.php … 01#p827201 , on my system the keymaps are located in /usr/share/kbd/keymaps/ and its subfolders, so for me the wiki article works and I don't own a crystal ball to know what problems other people may have.

Offline

#9 2010-09-17 18:16:48

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: rc.conf: loading keymap from path other than default

Which means KEYMAP="/usr/local/share/kbd/keymaps/personal.map" is how you change the path. wink


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#10 2010-09-17 20:52:40

CaptainPoutine
Member
Registered: 2010-09-16
Posts: 5

Re: rc.conf: loading keymap from path other than default

Thanks for the reference to rc.sysinit, karol...perhaps it will give some insight to the default paths.

fsckd, thanks: that's exactly what I was looking for.

Last edited by CaptainPoutine (2010-09-17 21:03:16)

Offline

Board footer

Powered by FluxBB