[lug] Dvorak scripts
Evelyn Mitchell
efm at tummy.com
Fri Mar 19 08:40:43 MST 2004
I've got 2 scripts which switch them back and forth, and a keymap.
Attached.
efm
* On 2004-03-19 08:32 Trent Turner <trentturner at comcast.net> wrote:
> Does anyone have any quick and easy shell scripts to swap out the
> keyboard mapping?
>
> Also, I would appreciate any leads to getting the start key to work on
> my KDE 3.1 desktop. That's the one on the left, lower row between the
> CTRL & ALT keys.
>
> Thanks!
> Trent
>
> p.s. Is it only my keyboard or Linux in general that causes the display
> of characters to lag about 3-4 seconds when I hit the Caps Lock key?
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
--
Regards, tummy.com, ltd
Evelyn Mitchell Linux Consulting since 1995
efm at tummy.com Senior System and Network Administrators
http://www.tummy.com/
-------------- next part --------------
" This file: "qwerty2dvorak":
" Last update: Thu Dec 04 18:00:00 CET 1997
"
" Purpose:
" Map keys for a qwerty keyboard to the dvorak keyboard layout.
" Note: This change has only been done for insert and ex mode!
"
" Installation:
" Save this file to some "filename".
" Usage from within Vim:
" :source filename
"
" For more info see this page:
" http://www.vim.org/dvor.html
" This file is available as:
" http://www.vim.org/src/keyboard.qwerty2dvorak
" The other file is available as:
" http://www.vim.org/src/keyboard.dvorak2qwerty
" SUN keyboard
" qwerty - unshifted
" 1 2 3 4 5 6 7 8 9 0 - = \ `
" q w e r t y u i o p [ ]
" a s d f g h j k l ; '
" z x c v b n m , . /
" dvorak - unshifted
" 1 2 3 4 5 6 7 8 9 0 - = \ `
" ' , . p y f g c r l / =
" a o e u i d h t n s -
" ; q j k x b m w v z
" qwerty - shifted
" ! @ # $ % ^ & * ( ) _ + | ~
" Q W E R T Y U I O P { }
" A S D F G H J K L : "
" Z X C V B N M < > ?
" dvorak - shifted
" 1 2 3 4 5 6 7 8 9 0 - = \ `
" " < > P Y F G C R L { }
" A O E U I D H T N S _
" : Q J K X B M W V ?
inoremap a a
inoremap b x
inoremap c j
inoremap d e
inoremap e .
inoremap f u
inoremap g i
inoremap h d
inoremap i c
inoremap j h
inoremap k t
inoremap l n
inoremap m m
inoremap n b
inoremap o r
inoremap p l
inoremap q '
inoremap r p
inoremap s o
inoremap t y
inoremap u g
inoremap v k
inoremap w ,
inoremap x q
inoremap y f
inoremap z ;
inoremap ; s
inoremap ' -
inoremap " _
inoremap , w
inoremap . v
inoremap / z
inoremap A A
inoremap B X
inoremap C J
inoremap D E
inoremap E >
inoremap F U
inoremap G I
inoremap H D
inoremap I C
inoremap J H
inoremap K T
inoremap L N
inoremap M M
inoremap N B
inoremap O R
inoremap P L
inoremap Q "
inoremap R P
inoremap S O
inoremap T Y
inoremap U G
inoremap V K
inoremap W <
inoremap X Q
inoremap Y F
inoremap Z :
inoremap < W
inoremap > V
inoremap ? Z
inoremap : S
inoremap [ /
inoremap ] =
inoremap { ?
inoremap } +
inoremap - [
inoremap _ {
inoremap = ]
inoremap + }
" END
-------------- next part --------------
" This file: "dvorak2qwerty":
" Last update: Thu Dec 04 18:00:00 CET 1997
"
" Purpose:
" Map keys for a qwerty keyboard to the dvorak keyboard layout.
" Note: This change has only been done for insert and ex mode!
"
" Installation:
" Save this file to some "filename".
" Usage from within Vim:
" :source filename
"
" For more info see this page:
" http://www.vim.org/dvor.html
" This file is available as:
" http://www.vim.org/src/keyboard.dvorak2qwerty
" The other file is available as:
" http://www.vim.org/src/keyboard.qwerty2dvorak
unmap! a
unmap! b
unmap! c
unmap! d
unmap! e
unmap! f
unmap! g
unmap! h
unmap! i
unmap! j
unmap! k
unmap! l
unmap! m
unmap! n
unmap! o
unmap! p
unmap! q
unmap! r
unmap! s
unmap! t
unmap! u
unmap! v
unmap! w
unmap! x
unmap! y
unmap! z
unmap! ;
unmap! '
unmap! \"
unmap! ,
unmap! .
unmap! /
unmap! A
unmap! B
unmap! C
unmap! D
unmap! E
unmap! F
unmap! G
unmap! H
unmap! I
unmap! J
unmap! K
unmap! L
unmap! M
unmap! N
unmap! O
unmap! P
unmap! Q
unmap! R
unmap! S
unmap! T
unmap! U
unmap! V
unmap! W
unmap! X
unmap! Y
unmap! Z
unmap! <
unmap! >
unmap! ?
unmap! :
unmap! [
unmap! ]
unmap! {
unmap! }
unmap! -
unmap! _
unmap! =
unmap! +
" END
-------------- next part --------------
keycode 8 =
keycode 9 = Escape
keycode 10 = 1 exclam
keycode 11 = 2 at
keycode 12 = 3 numbersign
keycode 13 = 4 dollar
keycode 14 = 5 percent
keycode 15 = 6 asciicircum
keycode 16 = 7 ampersand
keycode 17 = 8 asterisk
keycode 18 = 9 parenleft
keycode 19 = 0 parenright
keycode 20 = bracketleft braceleft
keycode 21 = bracketright braceright
keycode 22 = BackSpace
keycode 23 = Tab ISO_Left_Tab
keycode 24 = apostrophe quotedbl
keycode 25 = comma less
keycode 26 = period greater
keycode 27 = p P
keycode 28 = y Y
keycode 29 = f F
keycode 30 = g G
keycode 31 = c C
keycode 32 = r R
keycode 33 = l L
keycode 34 = slash question
keycode 35 = equal plus
keycode 36 = Return
keycode 37 = Control_L
keycode 38 = a A
keycode 39 = o O
keycode 40 = e E
keycode 41 = u U
keycode 42 = i I
keycode 43 = d D
keycode 44 = h H
keycode 45 = t T
keycode 46 = n N
keycode 47 = s S
keycode 48 = minus underscore
keycode 49 = grave asciitilde
keycode 50 = Shift_L
keycode 51 = backslash bar
keycode 52 = semicolon colon
keycode 53 = q Q
keycode 54 = j J
keycode 55 = k K
keycode 56 = x X
keycode 57 = b B
keycode 58 = m M
keycode 59 = w W
keycode 60 = v V
keycode 61 = z Z
keycode 62 = Shift_R
keycode 63 = KP_Multiply
keycode 64 = Meta_L
keycode 65 = space
keycode 66 = Caps_Lock
keycode 67 = F1
keycode 68 = F2
keycode 69 = F3
keycode 70 = F4
keycode 71 = F5
keycode 72 = F6
keycode 73 = F7
keycode 74 = F8
keycode 75 = F9
keycode 76 = F10
keycode 77 = Num_Lock Pointer_EnableKeys
keycode 78 = Scroll_Lock
keycode 79 = KP_Home KP_7
keycode 80 = KP_Up KP_8
keycode 81 = KP_Prior KP_9
keycode 82 = KP_Subtract
keycode 83 = KP_Left KP_4
keycode 84 = KP_Begin KP_5
keycode 85 = KP_Right KP_6
keycode 86 = KP_Add
keycode 87 = KP_End KP_1
keycode 88 = KP_Down KP_2
keycode 89 = KP_Next KP_3
keycode 90 = KP_Insert KP_0
keycode 91 = KP_Delete KP_Decimal
keycode 92 =
keycode 93 =
keycode 94 =
keycode 95 = F11
keycode 96 = F12
keycode 97 = Home
keycode 98 = Up
keycode 99 = Prior
keycode 100 = Left
keycode 101 =
keycode 102 = Right
keycode 103 = End
keycode 104 = Down
keycode 105 = Next
keycode 106 = Insert
keycode 107 = Delete
keycode 108 = KP_Enter
keycode 109 = Control_R
keycode 110 = Pause Break
keycode 111 = Print Execute
keycode 112 = KP_Divide
keycode 113 = Meta_R
keycode 114 =
keycode 115 = Alt_L
keycode 116 = Alt_R
keycode 117 =
keycode 118 =
keycode 119 =
keycode 120 =
keycode 121 =
keycode 122 =
keycode 123 =
keycode 124 =
keycode 125 =
keycode 126 =
keycode 127 =
keycode 128 =
keycode 129 =
keycode 130 =
keycode 131 =
keycode 132 =
keycode 133 =
keycode 134 =
! swap alt and meta
clear mod1
clear mod4
clear lock
clear control
add mod1 = Meta_L Meta_R
add mod4 = Alt_L Alt_R
add lock = Caps_Lock
add control = Control_L Control_R
More information about the LUG
mailing list