]> git.donarmstrong.com Git - qmk_firmware.git/blob - keyboards/planck/keymaps/cbbrowne/readme.md
e9e423ed915e97856e7b3519970fdeb158bb694a
[qmk_firmware.git] / keyboards / planck / keymaps / cbbrowne / readme.md
1 cbbrowne custom keyboard
2 ==============================
3
4 Due to cbbrowne@acm.org
5 Christopher Browne
6
7 This was originally based on the default keyboard map, but I have been
8 doing sundry experimentation:
9
10 1. Useful Experiments
11 ----------------------------------------
12
13  * It made sense to mess around some with keyboard maps.
14    - I added a keypad, originally based on keymaps/numpad.c, but
15      mighty substantially revised, as that one seems to be rotated 90
16      degrees from usual conventions for number pads
17  * The keypad layer also includes some sample "hacks" of cool things,
18    all using actions attached in using the function action_get_macro()
19    - Key [1][2] aka "q" types out my name, cbbrowne, as a fun example
20      of a key generating a bunch of keystrokes.  The keystroke is
21      sufficiently inconvenient that it isn't terribly practical for me
22      to use it, but hey, it shows how others might use this facility
23      in a more useful context.
24    - Key [2][2] aka "a" uses a random number generator to select a digit 0-9 at random
25    - Key [3][2] aka "z" uses a random number generator to select a letter a-z at random
26    - Key [1][3] aka "e" spits out the keymap version number
27   * Trying out sgoodwin's "hold Enter down to get Shift"
28
29
30 2. Some code structure ideas
31 ---------------------------------------------------
32
33    Each layer is given a name to aid in readability, which is then
34    used in the keymap matrix below.  The underscores do not denote
35    anything - you can have a layer called STUFF or any other name.
36
37    Layer names don't all need to be of the same length, obviously, and
38    you could also skip them entirely and just use numbers, though that
39    means needing to manage the numbers.
40
41    It is preferable to keep the symbols short so that a line worth of
42    key mappings fits compactly onto a line of code.  It might be an
43    interesting idea to express the maps rotated 90%, so that you
44    only need to fit 4 symbols onto each line, rather than 12.
45
46    I used enums to manage layer IDs and macro IDs so that I don't need
47    to care (beyond "start at 0", and arguably that's not needed) about
48    their values.
49
50 3. Things I did not like about the default mapping
51 ---------------------------------------------------------
52
53    * I found control too hard to get to.  I use it more than Tab, so
54      switched it there.
55    * Having dash on [lower-j] is a bit nonintuitive, but may be OK
56    * I switched ESC/TAB/M(0) around
57    * I'm suspicious that I want to shift M(0) from [4][1] to [4][2],
58      and shift ESC off the first column so KC_LCTL and KC_LALT can
59      be on the first column.
60    * I needed to swap ' and ENTER
61
62 4. Unuseful experiments
63 ---------------------------------------------------------
64
65 I have tried some things out that didn't turn out particularly well.
66 I'll note some of these for posterity, hopefully helpful in not doing
67 unwise things again...
68
69    * I tried added Workman alongside Dvorak and Colemak
70      - Boy, oh boy, these don't help!!!
71      - I have done 30 years of learning of Emacs key mappings, and
72        these alternative keyboards massively mess me up
73
74    * Space Cadet Shift; switching L_SHIFT to KC_LSP0, so that when I
75      just hit SHIFT, I get a left parens.  In principle, this is great
76      for Lisping.
77      - Unfortunately, there are times when mouse interfaces use SHIFT
78        to allow selecting multiple items, and this really interferes
79         with that
80
81
82
83 5. TODO
84 ---------------------------------------------------------
85
86   * I use tmux quite a lot; the mollat keymap seems to have some
87     interesting helpers.  It might be interesting to add a "tmux
88     layer," or to have a few keys in a layer oriented towards that
89   * The mollat tmux layer also suggests some thoughts about Emacs
90     helpers.
91   * I do not presently have anything that handles X11 screen
92     switching, as with Control-Alt-various
93   * I ought to probably look into KC_LEAD, to have some key combos
94     that do not need to be concurrent
95   * The jeebak keymap seems to have some neat ideas:
96     - Number layer which is aggressive about having numbers in several places
97     - Touch layer seems interesting