Adding a new keymap

2014-12-24 Thread Henrique Lengler
Hi,

I would like to install a custom keymap on my system but I
don`t know how since I cant find this information on the 
internet.

I already used it on linux it is a kbd keymap.
 
I get it here http://github.com/nandoflorestan/teclado-br 

Hom cat I add it to my system? Will I need to convert it to
another type of file?

Regards,
-- 
Henrique Lengler



Re: Adding a new keymap

2014-12-24 Thread Maurice McCarthy
On Wed, Dec 24, 2014 at 03:06:11PM -0200 or thereabouts, Henrique Lengler wrote:
 Hi,
 
 I would like to install a custom keymap on my system but I
 don`t know how since I cant find this information on the 
 internet.
 
 I already used it on linux it is a kbd keymap.
  
 I get it here http://github.com/nandoflorestan/teclado-br 
 
 Hom cat I add it to my system? Will I need to convert it to
 another type of file?
 
 Regards,
 -- 
 Henrique Lengler
 

man setxkbmap
man kbd



Re: Adding a new keymap

2014-12-24 Thread Henrique Lengler
On Wed, Dec 24, 2014 at 05:25:46PM +, Maurice McCarthy wrote:
 man setxkbmap
 man kbd

So why does wsconsctl exist? Would not be better if I use it?

Regards,
-- 
Henrique Lengler



Re: Adding a new keymap

2014-12-24 Thread Maurice McCarthy

On 2014-12-24 17:31, Henrique Lengler wrote:

On Wed, Dec 24, 2014 at 05:25:46PM +, Maurice McCarthy wrote:

man setxkbmap
man kbd


So why does wsconsctl exist? Would not be better if I use it?

Regards,


Yes, it is likely better. Don't know if it changes X though. I'm not 
great with OpenBSD but had to go through some of the tortures you are 
having yourself, so I'm doing my best to help as I can.


Regards
Moss

and Merry Christmas!



Re: Adding a new keymap

2014-12-24 Thread Maurice McCarthy

See also http://www.openbsd.org/faq/faq7.html



Re: Adding a new keymap

2014-12-24 Thread Henrique Lengler
On Wed, Dec 24, 2014 at 07:56:37PM +, Maurice McCarthy wrote:
 Yes, it is likely better. Don't know if it changes X though. I'm not great
 with OpenBSD but had to go through some of the tortures you are having
 yourself, so I'm doing my best to help as I can.
 
 Regards
 Moss
 
 and Merry Christmas!

It is really torturing.
I can't find anything on the internet about how can I add a keymap to wscons.
OpenBSD really lacks in its documentation. 

Regards,
-- 
Henrique Lengler



Re: Adding a new keymap

2014-12-24 Thread Maurice McCarthy

It is really torturing.
I can't find anything on the internet about how can I add a keymap to 
wscons.

OpenBSD really lacks in its documentation.

Regards,


Always try the man pages first and the online faq. You will find the 
documentation 1000x better than anywhere else!
That said it is still a steep learning curve. :-) but worth it, so far 
as I'm concerned.




Re: Adding a new keymap

2014-12-24 Thread Maurice McCarthy

$ man wsconsctl.conf

WSCONSCTL.CONF(5)   File Formats Manual WSCONSCTL.CONF(5)
NAME
wsconsctl.conf — wsconsctl variables to set at system startup
DESCRIPTION
wsconsctl.conf contains a list of wsconsctl(8) variable assignments 
that is read at system startup by rc(8) during the boot sequence.
The file is made up of wsconsctl(8) variable assignments 
(variable=value) with comments designated by a hash mark (‘#’).

FILES
/etc/wsconsctl.conf

EXAMPLES
To load a Russian keyboard encoding, one would use the following line:
keyboard.encoding=ru

To set the screen burner timeout to 60 seconds, the following can be 
used:

display.screen_off=6

SEE ALSO
rc(8), wsconsctl(8)
HISTORY
A wsconsctl.conf file first appeared in OpenBSD 3.0.
May 31, 2007OpenBSD-current



Re: Adding a new keymap

2014-12-24 Thread Henrique Lengler
On Wed, Dec 24, 2014 at 08:10:51PM +, Maurice McCarthy wrote:
 Always try the man pages first and the online faq. You will find the
 documentation 1000x better than anywhere else!
 That said it is still a steep learning curve. :-) but worth it, so far as
 I'm concerned.

I'm saying that I did this and I didn't find it. Could you point me any 
place I can find it, since you still saying it is documented?

Regards,
-- 
Henrique Lengler



Re: Adding a new keymap

2014-12-24 Thread Henrique Lengler
On Wed, Dec 24, 2014 at 08:15:53PM +, Maurice McCarthy wrote:
 $ man wsconsctl.conf
 
 WSCONSCTL.CONF(5) File Formats Manual WSCONSCTL.CONF(5)
 NAME
 wsconsctl.conf ??? wsconsctl variables to set at system startup
 DESCRIPTION
 wsconsctl.conf contains a list of wsconsctl(8) variable assignments that is
 read at system startup by rc(8) during the boot sequence.
 The file is made up of wsconsctl(8) variable assignments (variable=value)
 with comments designated by a hash mark (???#???).
 FILES
 /etc/wsconsctl.conf
 
 EXAMPLES
 To load a Russian keyboard encoding, one would use the following line:
 keyboard.encoding=ru
 
 To set the screen burner timeout to 60 seconds, the following can be used:
 display.screen_off=6
 
 SEE ALSO
 rc(8), wsconsctl(8)
 HISTORY
 A wsconsctl.conf file first appeared in OpenBSD 3.0.
 May 31, 2007  OpenBSD-current

Tell me how this would help me to figure how to add a new keymap.

Regards,
-- 
Henrique Lengler



Re: Adding a new keymap

2014-12-24 Thread Maurice McCarthy

Many keymaps can be set during the installation:

http://www.openbsd.org/faq/faq4.html#InstQuestions

4.5.2 - The Install Questions

Now we start getting the questions that will define how the system is 
set up. You will note that in most cases, all the questions are asked up 
front, then the installation takes place. If you have a slow computer or 
a slow Internet connection, you will be able to answer these questions, 
walk away, come back later and only have to reboot the system to 
complete the install.


  At any prompt except password prompts you can escape to a shell by
  typing '!'. Default answers are shown in []'s and are selected by
  pressing RETURN.  You can exit this program at any time by pressing
  Control-C, but this can leave your system in an inconsistent state.

  Choose your keyboard layout ('?' or 'L' for list) [default] Enter
= = =

If you enter 'fr' here you would end up with French on the console and 
in X.




Re: Adding a new keymap

2014-12-24 Thread Henrique Lengler
On Wed, Dec 24, 2014 at 08:21:31PM +, Maurice McCarthy wrote:
 Many keymaps can be set during the installation:

I'm talking about add a new keymap. Not choose one that already 
exists.
Looks like anyone know how the keymaps had been added to openbsd,
 they are just there. 

Regards,
-- 
Henrique Lengler



Re: Adding a new keymap

2014-12-24 Thread Maurice McCarthy

Ah, I am misunderstanding the question.

I don't have an OpenBSD system in front of me. (At work over 
Christmas.) But I'll see if I can work something out.


Regards
Moss

man xkbcomp

If you have the data to compile a new map.



Re: Adding a new keymap

2014-12-24 Thread Ted Unangst
On Wed, Dec 24, 2014 at 15:06, Henrique Lengler wrote:
 Hi,
 
 I would like to install a custom keymap on my system but I
 don`t know how since I cant find this information on the
 internet.
 
 I already used it on linux it is a kbd keymap.
 
 I get it here http://github.com/nandoflorestan/teclado-br
 
 Hom cat I add it to my system? Will I need to convert it to
 another type of file?

Add it to src/sys/dev/pckbc/wskbdmap_mfii.c and build a new kernel.



Re: Adding a new keymap

2014-12-24 Thread Henrique Lengler
On Wed, Dec 24, 2014 at 03:31:47PM -0500, Ted Unangst wrote:
 Add it to src/sys/dev/pckbc/wskbdmap_mfii.c and build a new kernel.

WTF

Where this src is located?
-- 
Henrique Lengler



Re: Adding a new keymap

2014-12-24 Thread Adam Wolk
On Wed, Dec 24, 2014, at 10:04 PM, Henrique Lengler wrote:
 On Wed, Dec 24, 2014 at 03:31:47PM -0500, Ted Unangst wrote:
  Add it to src/sys/dev/pckbc/wskbdmap_mfii.c and build a new kernel.
 
 WTF
 
 Where this src is located?
 -- 
 Henrique Lengler
 

In the CVS source tree:
 
http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pckbc/wskbdmap_mfii.c?rev=1.43content-type=text/x-cvsweb-markup

Relevant FAQ entry:
 http://www.openbsd.org/faq/faq5.html

Regards,
-- 
  Adam Wolk
  adam.w...@koparo.com



Re: Adding a new keymap

2014-12-24 Thread Dmitrij D. Czarkoff
Henrique Lengler said:
 I would like to install a custom keymap on my system

Are you talking about X11 or console keymap?  The former is defined in
/usr/X11R6/share/X11/xkb/symbols/, the latter – in
/usr/src/sys/dev/pckbc/wskbdmap_mfii.c.

-- 
Dmitrij D. Czarkoff



Re: Adding a new keymap

2014-12-24 Thread Henrique Lengler
On Wed, Dec 24, 2014 at 11:11:20PM +0100, Dmitrij D. Czarkoff wrote:
 Henrique Lengler said:
  I would like to install a custom keymap on my system
 
 Are you talking about X11 or console keymap?  The former is defined in
 /usr/X11R6/share/X11/xkb/symbols/, the latter ??? in
 /usr/src/sys/dev/pckbc/wskbdmap_mfii.c.
 
 -- 
 Dmitrij D. Czarkoff

Goodbye guys, returning to sabotage linux.
Are you crazy I will compile a kernel only to have a custom keymap?

Also a off topic things I don't liked about OpenBSD:

1 - Why the hell it came with three differents type of window system?
2 - The Automatic installer sucks
3 - Horrible console (without X) support

It have also a good things:

1 - I liked the sound system, works very well
2 - It is more like Unix. 

Regards,
-- 
Henrique Lengler



Re: Adding a new keymap

2014-12-24 Thread Mats O Jansson
I assume you want to create a keyboard map for brazilian dvorak i
console mode

Create a script that create a custom map. When the script is working it 
can be converted to source code.

The script should look something like

# Set encoding in a known state
wsconsctl keyboard.encoding=us.dvorak
# Add modifications, the following is a dummy since it already exists.
wsconsctl keyboard.map+=keycode 40=minus underscore

wsconctl keyboard.map will dump the current mapping.

It might be handy to have a script ready to reset the keyboard to a known 
state.

-moj

On Wed, 24 Dec 2014, Henrique Lengler wrote:

 On Wed, Dec 24, 2014 at 08:21:31PM +, Maurice McCarthy wrote:
  Many keymaps can be set during the installation:
 
 I'm talking about add a new keymap. Not choose one that already 
 exists.
 Looks like anyone know how the keymaps had been added to openbsd,
  they are just there. 
 
 Regards,
 -- 
 Henrique Lengler