#!/bin/bash
#
# pooters
# nodog
# 2004-09-21
#
# asdf
# changes to dvorak keymapping.

xmodmap - << EOF-xmodmap.dvorakeo
!
! ANSI Dvorak keyboard
!
! Author: Jeff Bigler (jcb@mit.edu)
! Last modified: 1996/08/27 13:45:30 by jcb@mit.edu
! 
! This file should be given as an argument to xmodmap to
! switch from a qwerty to a Dvorak keyboard.
!
! If you want to be easily able to switch the keyboard
! back to its previous state, first run xmodmap -pke and
! redirect the output to a file.  Then you can switch back
! by giving that file as an argument to xmodmap.  For
! example, if you type:
!
!     xmodmap -pke > /tmp/keyboard.default	
!
! before switching the keyboard, you can then type:
!
!     xmodmap /tmp/keyboard.default
!
! to reset the keyboard to its previous state.
!
! Note that if you pass this file again as an argument to
! xmodmap, you will apply these translations a second time
! and come out with gibberish!
!
keysym q = quoteright quotedbl
keysym w = comma less
keysym e = period greater
keysym r = p P
keysym t = y Y
keysym y = f F
keysym u = g G gcircumflex Gcircumflex
keysym i = c C ccircumflex Ccircumflex
keysym o = r R
keysym p = l L
keysym bracketleft = slash question
keysym bracketright = equal plus
keysym a = a A
keysym s = o O
keysym d = e E
keysym f = u U ubreve Ubreve
keysym g = i I
keysym h = d D
keysym j = h H hcircumflex Hcircumflex
keysym k = t T
keysym l = n N
keysym semicolon = s S scircumflex Scircumflex
keysym quoteright = minus underscore
keysym z = semicolon colon
keysym x = q Q
keysym c = j J jcircumflex Jcircumflex
keysym v = k K
keysym b = x X
keysym n = b B
keysym m = m M
keysym comma = w W
keysym period = v V
keysym slash = z Z
!
! The keysyms for the top row have been moved to the end
! of the file (and translations that would normally have
! no effect are still included) because of conflicts with
! some of the extended keysyms on HP workstations.  If the
! keysyms for the 8 and 9 keys are not defined explicitly
! *after* the keysyms for bracketleft and bracketright,
! they end up getting bound to "slash question" and "equal
! plus", respectively.
!
keysym 1 = 1 exclam
keysym 2 = 2 at
keysym 3 = 3 numbersign
keysym 4 = 4 dollar
keysym 5 = 5 percent
keysym 6 = 6 asciicircum
keysym 7 = 7 ampersand
keysym 8 = 8 asterisk
keysym 9 = 9 parenleft
keysym 0 = 0 parenright
keysym minus = bracketleft braceleft
keysym equal = bracketright braceright
!
! modified by nodog (Anderson Mills) 2006-05-21 to add Esperanto
! Uzi AltGr kun ne internacia klavoj
! left/right windows-logo key
! in "windows" keyboards the position of the key is annoying, is where AltGr
! usually resides, so go define it as AltGr
!
!this turns the left "Apple" or "Window" key into Alt_L as well
!keycode 115 = Alt_L 
!this turns the right "Apple" key into Alt_R as well
!keycode 116 = Alt_R 
!this turns the right "Apple" or "Window" key into AltGr as well
!keycode 118 = Mode_switch
!Caps_Lock is now AltGr
keycode 66 = Mode_switch
!
! Cxi tiu de http://bertilow.com/komputo/linukso.html
! Baza solvo por tajpado de Esperantaj supersignaj literoj estas uzado de la
! klavo AltGr. Por fari tion oni skribu en sia dosiero #.Xmodmap# la jenajn
! liniojn, kiuj modifas la aktualan klavararangxon:
!
!keycode 31 = C NoSymbol ccircumflex
!keycode 30 = G NoSymbol gcircumflex
!keycode 44 = H NoSymbol hcircumflex
!keycode 54 = J NoSymbol jcircumflex
!keycode 47 = S NoSymbol scircumflex
!keycode 41 = U NoSymbol ubreve
! Tiam AltGr-c kreas #c#-on kun cirkumflekso, kun aldona majuskliga klavo gxi
! kreas #C#-on kun cirkumflekso, k.t.p.
!
EOF-xmodmap.dvorakeo
