Browse Source

keys

master
Stefan Dorn 4 years ago
parent
commit
6e7dfe066d
2 changed files with 78 additions and 78 deletions
  1. +48
    -48
      generate_layout.rb
  2. +30
    -30
      src/keyboard/layout.c

+ 48
- 48
generate_layout.rb View File

@ -551,54 +551,54 @@ HEADER
end
left =<<EOL
Lno ___ __ Ln4 ___ __ Ln3 ___ __ Ln2 ___ __ Ln1 ___ __ Ln0 ___ __ Lnd ___ __
_LB 0 1 2 3 4 5 6
_LP f11 f1 f2 f3 f4 f5 f6
_LN f11 f1 f2 f3 f4 f5 f6
_LF f11 f1 f2 f3 f4 f5 f6
_LD 0 1 2 3 4 5 6
Lto ___ __ Lt4 ___ __ Lt3 ___ __ Lt2 ___ __ Lt1 ___ __ Lt0 ___ __ Ltd ___ __
_LB tab x v l c w tab
_LP ~ [ ' < \\
_LN esc bs ret del ins
_LF f24 f23 f22 f21 f24
_LD 8 7 6 5 9
Lho ___ __ Lh4 ___ __ Lh3 ___ __ Lh2 ___ __ Lh1 ___ __ Lh0 ___ __
_LB UM u i a e o
_LP , \{ ? ! (
_LN a-< a-^ a-v a-> tab
_LF f14 f13 f12 f11 f20
_LD 4 3 2 1 0
Lbo ___ __ Lb4 ___ __ Lb3 ___ __ Lb2 ___ __ Lb1 ___ __ Lb0 ___ __ Lbd ___ __
_LB S_l CL % * : p z ret
_LP ` ┃ ^ ┃ | ┃ - ┃ @ ┃
_LN hom p-^ p-v end NUL
_LF f18 f17 f16 f15 f19
_LD 8 7 6 5 9
Luo ___ __ Lu4 ___ __ Lu3 ___ __ Lu2 ___ __ Lu1 ___ __
_LB a-< a-^ a-v a-> W
_LP
_LN
_LF
_LD
Lzb ___ __ Lzc ___ __
_LB SCL LF
_LP
_LN
_LF
_LD
Lya ___ __ Lyb ___ __ Lyc ___ __
_LB spc C A
_LP
_LN
_LF
_LD
Lxa ___ __ Lxb ___ __ Lxc ___ __
_LB spc C A
_LP
_LN
_LF
_LD
Lno ___ __ Ln4 ___ __ Ln3 ___ __ Ln2 ___ __ Ln1 ___ __ Ln0 ___ __ Lnd ___ __
_LB 0 1 2 3 4 5 6
_LP f11 f1 f2 f3 f4 f5 f6
_LN f11 f1 f2 f3 f4 f5 f6
_LF f11 f1 f2 f3 f4 f5 f6
_LD 0 1 2 3 4 5 6
Lto ___ __ Lt4 ___ __ Lt3 ___ __ Lt2 ___ __ Lt1 ___ __ Lt0 ___ __ Ltd ___ __
_LB tab x v l c w pause
_LP ~ [ ' < \\
_LN esc bs ret del ins
_LF f24 f23 f22 f21 f24
_LD 8 7 6 5 9
Lho ___ __ Lh4 ___ __ Lh3 ___ __ Lh2 ___ __ Lh1 ___ __ Lh0 ___ __
_LB UM u i a e o
_LP , \{ ? ! (
_LN a-< a-^ a-v a-> tab
_LF f14 f13 f12 f11 f20
_LD 4 3 2 1 0
Lbo ___ __ Lb4 ___ __ Lb3 ___ __ Lb2 ___ __ Lb1 ___ __ Lb0 ___ __ Lbd ___ __
_LB S_l CL % * : p z ret
_LP ` ┃ ^ ┃ | ┃ - ┃ @ ┃
_LN hom p-^ p-v end NUL
_LF f18 f17 f16 f15 f19
_LD 8 7 6 5 9
Luo ___ __ Lu4 ___ __ Lu3 ___ __ Lu2 ___ __ Lu1 ___ __
_LB a-< a-^ a-v a-> W
_LP
_LN
_LF
_LD
Lzb ___ __ Lzc ___ __
_LB esc SCL
_LP
_LN
_LF
_LD
Lya ___ __ Lyb ___ __ Lyc ___ __
_LB spc C A
_LP
_LN
_LF
_LD
Lxa ___ __ Lxb ___ __ Lxc ___ __
_LB spc C A
_LP
_LN
_LF
_LD
EOL
right =<<EOL


+ 30
- 30
src/keyboard/layout.c View File

@ -41,18 +41,18 @@ static const keycode PROGMEM _kb_layout_code[KB_ROWS][KB_COLUMNS][KB_LAYERS] = {
(keycode) MOD_KEY_LeftAlt, // Lyc on LD
},
{ // row 0 x col 5
(keycode) KEY_ScrollLock, // Lzb on LB
(keycode) KEY_ScrollLock, // Lzb on LP
(keycode) KEY_ScrollLock, // Lzb on LN
(keycode) KEY_ScrollLock, // Lzb on LF
(keycode) KEY_ScrollLock, // Lzb on LD
(keycode) KEY_Escape, // Lzb on LB
(keycode) KEY_Escape, // Lzb on LP
(keycode) KEY_Escape, // Lzb on LN
(keycode) KEY_Escape, // Lzb on LF
(keycode) KEY_Escape, // Lzb on LD
},
{ // row 0 x col 6
(keycode) 3, // Lzc on LB
(keycode) 3, // Lzc on LP
(keycode) 3, // Lzc on LN
(keycode) 3, // Lzc on LF
(keycode) 3, // Lzc on LD
(keycode) KEY_ScrollLock, // Lzc on LB
(keycode) KEY_ScrollLock, // Lzc on LP
(keycode) KEY_ScrollLock, // Lzc on LN
(keycode) KEY_ScrollLock, // Lzc on LF
(keycode) KEY_ScrollLock, // Lzc on LD
},
{ // row 0 x col 7
(keycode) 3, // Rzc on LB
@ -448,11 +448,11 @@ static const keycode PROGMEM _kb_layout_code[KB_ROWS][KB_COLUMNS][KB_LAYERS] = {
(keycode) KEY_9_LeftParenthesis, // Lt0 on LD
},
{ // row 4 x col 6
(keycode) KEY_Tab, // Ltd on LB
(keycode) KEY_Tab, // Ltd on LP
(keycode) KEY_Tab, // Ltd on LN
(keycode) KEY_Tab, // Ltd on LF
(keycode) KEY_Tab, // Ltd on LD
(keycode) KEY_Pause, // Ltd on LB
(keycode) KEY_Pause, // Ltd on LP
(keycode) KEY_Pause, // Ltd on LN
(keycode) KEY_Pause, // Ltd on LF
(keycode) KEY_Pause, // Ltd on LD
},
{ // row 4 x col 7
(keycode) KEY_NULL, // Rtd on LB
@ -615,18 +615,18 @@ static const keyfunc PROGMEM _kb_layout_func[KB_ROWS][KB_COLUMNS][KB_LAYERS] = {
(keyfunc) &kbfun_normal_press_release, // dummy on LD
},
{ // row 0 x col 1
(keyfunc) &kbfun_modifier_sticky, // Lxc on LB
(keyfunc) &kbfun_modifier_sticky, // Lxc on LP
(keyfunc) &kbfun_modifier_sticky, // Lxc on LN
(keyfunc) &kbfun_modifier_sticky, // Lxc on LF
(keyfunc) &kbfun_modifier_sticky, // Lxc on LD
(keyfunc) &kbfun_modifier_press_release, // Lxc on LB
(keyfunc) &kbfun_modifier_press_release, // Lxc on LP
(keyfunc) &kbfun_modifier_press_release, // Lxc on LN
(keyfunc) &kbfun_modifier_press_release, // Lxc on LF
(keyfunc) &kbfun_modifier_press_release, // Lxc on LD
},
{ // row 0 x col 2
(keyfunc) &kbfun_modifier_sticky, // Lxb on LB
(keyfunc) &kbfun_modifier_sticky, // Lxb on LP
(keyfunc) &kbfun_modifier_sticky, // Lxb on LN
(keyfunc) &kbfun_modifier_sticky, // Lxb on LF
(keyfunc) &kbfun_modifier_sticky, // Lxb on LD
(keyfunc) &kbfun_modifier_press_release, // Lxb on LB
(keyfunc) &kbfun_modifier_press_release, // Lxb on LP
(keyfunc) &kbfun_modifier_press_release, // Lxb on LN
(keyfunc) &kbfun_modifier_press_release, // Lxb on LF
(keyfunc) &kbfun_modifier_press_release, // Lxb on LD
},
{ // row 0 x col 3
(keyfunc) &kbfun_normal_press_release, // Lxa on LB
@ -650,11 +650,11 @@ static const keyfunc PROGMEM _kb_layout_func[KB_ROWS][KB_COLUMNS][KB_LAYERS] = {
(keyfunc) &kbfun_normal_press_release, // Lzb on LD
},
{ // row 0 x col 6
(keyfunc) &kbfun_layer_press_release, // Lzc on LB
(keyfunc) &kbfun_layer_press_release, // Lzc on LP
(keyfunc) &kbfun_layer_press_release, // Lzc on LN
(keyfunc) &kbfun_layer_press_release, // Lzc on LF
(keyfunc) &kbfun_layer_press_release, // Lzc on LD
(keyfunc) &kbfun_normal_press_release, // Lzc on LB
(keyfunc) &kbfun_normal_press_release, // Lzc on LP
(keyfunc) &kbfun_normal_press_release, // Lzc on LN
(keyfunc) &kbfun_normal_press_release, // Lzc on LF
(keyfunc) &kbfun_normal_press_release, // Lzc on LD
},
{ // row 0 x col 7
(keyfunc) &kbfun_layer_press_release, // Rzc on LB


Loading…
Cancel
Save