*BSD News Article 78039


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.vbc.net!garlic.com!puffin.com!not-for-mail
From: chrisj@puffin.com (Chris Jewell)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Dvorak Keyboard & FreeBSD
Date: 10 Sep 1996 21:24:08 -0700
Organization: The laughter-filled home of Chris and Jan, Hollister, CA, USA
Lines: 96
Message-ID: <515et8$ff9@tufted.puffin.com>
References: <01bb9f65$a08c8ea0$6aa048a6@maynardm>
NNTP-Posting-Host: localhost.puffin.com
Summary: Dvorak keyboard with PCVT and/or X
Keywords: Dvorak PCVT X
Bcc: chrisj

Posted and mailed.

In article <01bb9f65$a08c8ea0$6aa048a6@maynardm>,
W Mark Maynard II <maynardm@ibm.net> wrote:
>I am considering switching to Dvorak but I want to be sure it will work
>with FreeBSD. Does FreeBSD have a Dvorak keymap built-in or is there
>somewhere I can download one? Also, if I buy a Dvorak keyboard will I still
>need a keymap?

For the text console if you use PCVT, add the following paragraph
to /usr/share/misc/keymap.pcvt:

dv|dvorak|United States Alternate Keyboard:\
	:K12=[:S12={:C12=\033:K13=]:S13=}:C13=\035:\
	:K17=\047:S17=\042:C17=\047:K18=,:S18=<:C18=,:\
	:K19=.:S19=>:C19=.:K20=p:S20=P:C20=\020:\
	:K21=y:S21=Y:C21=\031:K22=f:S22=F:C22=\006:\
	:K23=g:S23=G:C23=\007:K24=c:S24=C:C24=\003:\
	:K25=r:S25=R:C25=\022:K26=l:S26=L:C26=\014:\
	:K27=/:S27=?:C27=\177:K28=\075:S28=+:C28=\075:\
	:K32=o:S32=O:C32=\017:K33=e:S33=E:C33=\005:\
	:K34=u:S34=U:C34=\025:K35=i:S35=I:C35=\011:\
	:K36=d:S36=D:C36=\004:K37=h:S37=H:C37=\008:\
	:K38=t:S38=T:C38=\024:K39=n:S39=N:C39=\016:\
	:K40=s:S40=S:C40=\023:K41=-:S41=_:C41=\037:\
	:K46=;:S46=\072:C46=;:K47=q:S47=Q:C47=\021:\
	:K48=j:S48=J:C48=\012:K49=k:S49=K:C49=\013:\
	:K50=x:S50=X:C50=\030:K51=b:S51=B:C51=\002:\
	:K53=w:S53=W:C53=\027:K54=v:S54=V:C54=\026:\
	:K55=z:S55=Z:C55=\032:

For X, put the following in a text file and point the xmodmap command
at it:

! Convert the keyboard from the usual Sholes layout to Dvorak

! Brackets just to the left of the Backspace key

keycode 20 = bracketleft braceleft
keycode 21 = bracketright braceright

! The QWERTY row of the Sholes keyboard

keycode 24 = apostrophe quotedbl
keycode 25 = comma less
keycode 26 = period greater
keycode 27 = P
keycode 28 = Y
keycode 29 = F
keycode 30 = G
keycode 31 = C
keycode 32 = R
keycode 33 = L
keycode 34 = slash question
keycode 35 = equal plus

! The middle typewriter row, skipping "a", which is unchanged.

keycode 39 = O
keycode 40 = E
keycode 41 = U
keycode 42 = I
keycode 43 = D
keycode 44 = H
keycode 45 = T
keycode 46 = N
keycode 47 = S
keycode 48 = minus underscore

! The bottom typewriter row, skipping "m", which is unchanged.

keycode 52 = semicolon colon
keycode 53 = Q
keycode 54 = J
keycode 55 = K
keycode 56 = X
keycode 57 = B
keycode 59 = W
keycode 60 = V
keycode 61 = Z

I put Dvorak-keyboard and standard-keyboard commands on my main menu
under FVWM, so non-Dvorak-typing guests can type on my keyboard
without going crazy.

I must that this Dvorak stuff has become easier to accomplish over the
years: my first Dvorak machine was a an Apple IIe, where a technician
had to spot-solder a jumper to two pins on the keyboard encoder ROM
and bend another pin up out of its socket.  After that, nobody but me
could manage to type anything on that machine.  I *like* soft-mapped
keyboards.  <grin>

If somebody will tell me the right address, I'll be happy to email the
PCVT stuff to whoever could integrate into FreeBSD 2.2.
-- 
Chris Jewell    chrisj@puffin.com    1341 Ramona Ave    Hollister CA USA 95023