# http://gitorious.org/mzcode/nanonotes/blobs/public/keymaps/us_bnn.kmap
# us.map
# On bnn esc=1,  bksp=14, tab=15, enter=28,  bleu fn=29 (-> CtrlL),  alt=56, space=57,
#  capslock=58, F1-F9=59-66, shift=42, ctrl=97, red arrow=100 (->AltGr),
#  up=103, left=105, right=106, down=108,
# small mic = 183, volup=87, voldown=88,

# keymaps 0-2,4-6,8-9,12
# 6=ControlAltGr, 8=Alt, 9=ShiftAlt,  12=ControlAlt, 64=CtrlL, 65=ShiftCtrll
keymaps 0-2,4-5,8,12,64-65
alt_is_meta
include "qwerty-layout"
include "linux-keys-bare"
keycode 100 = AltGr
strings as usual
#             0               1=Shift         2=AltGr           4=Control        5=ControlShift
keycode   1 = Escape
keycode   2 = one              exclam
keycode   3 = two              at               at               nul              nul
keycode   4 = three            numbersign
	control	keycode   4 = Escape
keycode   5 = four             dollar           dollar           Control_backslash
keycode   6 = five             percent
	control	keycode   6 = Control_bracketright
keycode   7 = six              asciicircum
	control	keycode   7 = Control_asciicircum
keycode   8 = seven            ampersand        braceleft        Control_underscore
keycode   9 = eight            asterisk         bracketleft      Delete
keycode  10 = nine             parenleft        bracketright
keycode  11 = zero             parenright       braceright
keycode  12 = minus            underscore       backslash        Control_underscore Control_underscore
keycode  13 = equal            plus
keycode  14 = Delete
keycode  15 = Tab
keycode  26 = bracketleft      braceleft
	control	keycode  26 = Escape
keycode  27 = bracketright     braceright       asciitilde       Control_bracketright
keycode  28 = Return
	alt	keycode  28 = Meta_Control_m
# keycode  29 = Control
keycode  39 = semicolon        colon
keycode  40 = apostrophe       grave
	control	keycode  40 = Control_g
# keycode  41 = grave            asciitilde
	control	keycode  41 = nul
keycode  42 = Shift
keycode  43 = backslash        bar
	control	keycode  43 = Control_backslash
keycode  51 = comma            less
keycode  52 = period           greater
keycode  53 = slash            question
	control	keycode  53 = Delete
# keycode  54 = Shift
keycode  56 = Alt
keycode  57 = space
	control	keycode  57 = nul
keycode  58 = Caps_Lock
keycode  86 = less             greater          bar
keycode  97 = Control

# Change linux-keys-bare.inc.gz
# =/+
altgr   keycode  13 = asciitilde
ctrll   keycode  13 = three
# Delete
altgr   keycode  14 = BackSpace
# q
altgr   keycode  16 = exclam
# w
altgr   keycode  17 = at
# e
altgr   keycode  18 = numbersign
# r
altgr   keycode  19 = dollar
# t
altgr   keycode  20 = percent
# y
altgr   keycode  21 = asciicircum
# u
altgr   keycode  22 = ampersand
ctrll   keycode  22 = seven
# i
altgr   keycode  23 = asterisk
ctrll   keycode  23 = eight
# o
altgr   keycode  24 = parenleft
ctrll   keycode  24 = nine
# p
altgr   keycode  25 = parenright
# blue fn
keycode  29 = CtrlL
# a
altgr   keycode  30 = U+00B0
# s
altgr   keycode  31 = U+00A8
# d
altgr   keycode  32 = U+20AC
# f
altgr   keycode  33 = minus
# g
altgr   keycode  34 = underscore
# h
altgr   keycode  35 = braceleft
# j
altgr   keycode  36 = bracketleft
ctrll   keycode  36 = four
# k
altgr   keycode  37 = bracketright
ctrll   keycode  37 = five
# l
altgr   keycode  38 = braceright
ctrll   keycode  38 = six
# ; :
# ' "
# was grave  asciitilde
keycode  41 = U+00B4           grave
# Shift
# \ |
# z
altgr   keycode  44 = nine
# x
altgr   keycode  45 = zero
# c
# v
# b
# n
altgr   keycode  49 = less
ctrll   keycode  49 = one
# m
altgr   keycode  50 = greater
ctrll   keycode  50 = two
# was , <
keycode  51 = comma            semicolon
altgr   keycode  51 = apostrophe
# was . >
keycode  52 = period           colon
altgr   keycode  52 =  quotedbl
# / ?
ctrll   keycode  53 = zero
# was Shift
keycode  54 = AltGr
# KP_Multiply
# Alt
# space
# Caps_Lock
# was Fn              Fn+10              Console_n+12
keycode  59 = F1               F11              one
keycode  60 = F2               F12              two
keycode  61 = F3               F13              three
keycode  62 = F4               F14              four
keycode  63 = F5               F15              five
keycode  64 = F6               F16              six
keycode  65 = F7               F17              seven
keycode  66 = F8               F18              eight
# vol down (F11 in kernel)
keycode  115 = F9               Scroll_Backward     Prior
# vol up (F12 in kernel kmap)
keycode  114 = F10              Scroll_Forward      Next

# -string F11 = "\033[23~" ??
# -string F12 = "\033[24~" ??


## some addons to allow french typing at console (without im) with blue fn
# +, = , tilde (fn yet used)
ctrll shift keycode 13 = dead_tilde
# y, circumflex
ctrll keycode 21 = dead_circumflex
# a
ctrll keycode 30 = agrave
# `
ctrll keycode 41 = egrave
# , ; '
ctrll keycode 51 = eacute
# u (fn yet used!)
ctrll shift keycode 22 = ugrave
