1
0
Fork 0

ergodox: Update algernon's keymap to v1.8

ADORE
-----

* Major rearrangements were made, to reduce pinky use, and to balance
  out the hand usage.

Tools
-----

* The `hid-commands` tool will now display a notification when
  the **AppSel** layer is triggered.
* The `log-to-heatmap.py` tool now treats the innermost keys on the
  bottom row as thumb keys, as far as statistics are concerned.

Miscellaneous
-------------

* Fixed the **Steno** toggle key.
* My wife is now present on the keyboard too.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
This commit is contained in:
Gergely Nagy 2016-10-03 19:20:00 +02:00
parent 86065dca4d
commit aa9c6e9f59
No known key found for this signature in database
GPG key ID: AC1E90BAC433F68F
9 changed files with 212 additions and 175 deletions

View file

@ -111,11 +111,11 @@
"x": 3.5,
"a": 6
},
"G",
"C",
{
"x": 10.5
},
"C"
"L"
],
[
{
@ -128,11 +128,11 @@
"x": 1,
"a": 6
},
"L",
"H",
{
"x": 8.5
},
"H",
"G",
{
"x": 1
},
@ -143,7 +143,7 @@
"y": -0.875,
"x": 5.5
},
"M",
"F",
{
"a": 4,
"fa": [0, 0, 0],
@ -158,7 +158,7 @@
{
"a": 6
},
"F"
"M"
],
[
{
@ -167,7 +167,7 @@
"a": 4,
"w": 1.5
},
"\n\n~\n`",
"\n\n|\n\\",
{
"a": 6,
"f": 3
@ -175,14 +175,14 @@
"X",
{
"x": 14.5,
"a": 6
"a": 4
},
"Y",
"/\n?",
{
"a": 4,
"w": 1.5
},
"|\n\\"
"~\n`"
],
[
{
@ -312,7 +312,7 @@
{
"x": 1
},
"J"
"Y"
],
[
{
@ -342,10 +342,9 @@
},
"Z",
{
"x": 14.5,
"a": 4
"x": 14.5
},
"?\n/",
"J",
{
"f": 9,
"g": true,

View file

@ -1,6 +1,8 @@
#!/bin/bash
set -e
LAST_APPSEL_START=0
cmd_wm () {
WIN="$(xdotool getactivewindow)"
wmctrl -i -r ${WIN} -b remove,maximized_vert,maximized_horz
@ -34,6 +36,16 @@ cmd_appsel_chrome () {
_cmd_appsel chromium
}
cmd_appsel_start () {
APPSEL_START=$(date +%s)
if [ $APPSEL_START -lt $(expr $LAST_APPSEL_START + 10) ]; then
return
fi
LAST_APPSEL_START=$APPSEL_START
notify-send -t 1000 "Please select an application!" -c device -u low \
-i /usr/share/icons/Adwaita/24x24/devices/video-display.png
}
cmd_help () {
cat <<EOF
Use the source, Luke!

View file

@ -145,6 +145,11 @@ class Heatmap(object):
usage[0][4] = usage[0][4] + self.log[(c, r)]
else:
usage[1][0] = usage[1][0] + self.log[(c, r)]
elif r == 4 and (c == 4 or c == 9): # bottom row thumb keys
if c <= 6: # left side
usage[0][4] = usage[0][4] + self.log[(c, r)]
else:
usage[1][0] = usage[1][0] + self.log[(c, r)]
else:
fc = c
hand = 0

View file

@ -15,20 +15,20 @@ charmap = {
'6': [[11, 0]], '&': [[2, 5], [11, 0]],
'8': [[12, 0]],
'`': [[0, 1]], '~': [[2, 5], [0, 1]],
'y': [[1, 1]], 'Y': [[2, 5], [1, 1]],
'\\': [[0, 1]], '|': [[2, 5], [0, 1]],
'x': [[1, 1]], 'X': [[2, 5], [1, 1]],
'w': [[2, 1]], 'W': [[2, 5], [2, 1]],
'g': [[3, 1]], 'G': [[2, 5], [3, 1]],
'l': [[4, 1]], 'L': [[2, 5], [4, 1]],
'm': [[5, 1]], 'M': [[2, 5], [5, 1]],
'c': [[3, 1]], 'C': [[2, 5], [3, 1]],
'h': [[4, 1]], 'H': [[2, 5], [4, 1]],
'f': [[5, 1]], 'F': [[2, 5], [5, 1]],
'[': [[6, 1]], '{': [[2, 5], [6, 1]], '(': [[6, 1], [6, 1]],
']': [[7, 1]], '}': [[2, 5], [7, 1]], ')': [[7, 1], [7, 1]],
'f': [[8, 1]], 'F': [[2, 5], [8, 1]],
'h': [[9, 1]], 'H': [[2, 5], [9, 1]],
'c': [[10, 1]], 'C': [[2, 5], [10, 1]],
'm': [[8, 1]], 'M': [[2, 5], [8, 1]],
'g': [[9, 1]], 'G': [[2, 5], [9, 1]],
'l': [[10, 1]], 'L': [[2, 5], [10, 1]],
'p': [[11, 1]], 'P': [[2, 5], [11, 1]],
'x': [[12, 1]], 'X': [[2, 5], [12, 1]],
'\\': [[13, 1]], '|': [[2, 5], [13, 1]],
'/': [[12, 1]], '?': [[2, 5], [12, 1]],
'`': [[13, 1]], '~': [[2, 5], [13, 1]],
'\t': [[0, 2]],
'a': [[1, 2]], 'A': [[2, 5], [1, 2]],
@ -51,8 +51,8 @@ charmap = {
'b': [[8, 3]], 'B': [[2, 5], [8, 3]],
'k': [[9, 3]], 'K': [[2, 5], [9, 3]],
'v': [[10, 3]], 'V': [[2, 5], [10, 3]],
'j': [[11, 3]], 'J': [[2, 5], [11, 3]],
'/': [[12, 3]], '?': [[2, 5], [12, 3]],
'y': [[11, 3]], 'Y': [[2, 5], [11, 3]],
'j': [[12, 3]], 'J': [[2, 5], [12, 3]],
':': [[4, 4]], ';': [[4, 4], [4, 4]],
'-': [[9, 4]], '_': [[2, 5], [9, 4]],