summaryrefslogtreecommitdiff
path: root/keyboards/ergodox/keymaps/algernon/tools
diff options
context:
space:
mode:
authorxyverz <xyverz@gmail.com>2016-11-16 22:36:36 -0800
committerxyverz <xyverz@gmail.com>2016-11-16 22:36:36 -0800
commitb493f6a4ed14e74c268ae3d7a07577591fe71cc7 (patch)
tree0da986aa45733b08c6b8c379658abd5e0a1fb8a7 /keyboards/ergodox/keymaps/algernon/tools
parent8dd422ffe1a84416dd4a8d38878979f5b7bbd51b (diff)
parentc38b3e3be93a8b4f520212117b6498a288d67751 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'keyboards/ergodox/keymaps/algernon/tools')
-rw-r--r--keyboards/ergodox/keymaps/algernon/tools/heatmap-layout.ADORE.json29
-rw-r--r--keyboards/ergodox/keymaps/algernon/tools/heatmap-layout.Dvorak.json2
-rwxr-xr-xkeyboards/ergodox/keymaps/algernon/tools/hid-commands26
-rwxr-xr-xkeyboards/ergodox/keymaps/algernon/tools/layer-notify12
-rwxr-xr-xkeyboards/ergodox/keymaps/algernon/tools/log-to-heatmap.py5
-rwxr-xr-xkeyboards/ergodox/keymaps/algernon/tools/text-to-log.py24
6 files changed, 54 insertions, 44 deletions
diff --git a/keyboards/ergodox/keymaps/algernon/tools/heatmap-layout.ADORE.json b/keyboards/ergodox/keymaps/algernon/tools/heatmap-layout.ADORE.json
index 502d1e6ea4..e09efecc46 100644
--- a/keyboards/ergodox/keymaps/algernon/tools/heatmap-layout.ADORE.json
+++ b/keyboards/ergodox/keymaps/algernon/tools/heatmap-layout.ADORE.json
@@ -65,7 +65,7 @@
"x": 4.5,
"f": 3
},
- "F12",
+ "Fx",
{
"a": 4,
"f": 3,
@@ -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,
diff --git a/keyboards/ergodox/keymaps/algernon/tools/heatmap-layout.Dvorak.json b/keyboards/ergodox/keymaps/algernon/tools/heatmap-layout.Dvorak.json
index 5b4ca06c30..1e53281c56 100644
--- a/keyboards/ergodox/keymaps/algernon/tools/heatmap-layout.Dvorak.json
+++ b/keyboards/ergodox/keymaps/algernon/tools/heatmap-layout.Dvorak.json
@@ -65,7 +65,7 @@
"x": 4.5,
"f": 3
},
- "F12",
+ "Fx",
{
"a": 4,
"f": 3,
diff --git a/keyboards/ergodox/keymaps/algernon/tools/hid-commands b/keyboards/ergodox/keymaps/algernon/tools/hid-commands
index f3b83cf6d1..a29d38f414 100755
--- a/keyboards/ergodox/keymaps/algernon/tools/hid-commands
+++ b/keyboards/ergodox/keymaps/algernon/tools/hid-commands
@@ -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
@@ -14,7 +16,7 @@ _cmd_appsel () {
}
cmd_appsel_music () {
- wmctrl -x -a rhythmbox || wmctrl -x -a spotify || true
+ wmctrl -x -a rhythmbox || wmctrl -x -a spotify || wmctrl -x -a kodi || true
xdotool key Escape
}
@@ -23,7 +25,7 @@ cmd_appsel_slack () {
}
cmd_appsel_emacs () {
- _cmd_appsel emacs24
+ _cmd_appsel emacs
}
cmd_appsel_term () {
@@ -34,6 +36,24 @@ cmd_appsel_chrome () {
_cmd_appsel chromium
}
+cmd_appsel_start () {
+ if [ ! -z "${DISABLE_APPSEL_START}" ]; then
+ return
+ fi
+
+ 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_reflash () {
+ teensy_loader_cli -v -w ~/src/ext/qmk_firmware/algernon.hex --mcu atmega32u4 || true
+}
+
cmd_help () {
cat <<EOF
Use the source, Luke!
@@ -57,5 +77,3 @@ while read l; do
cmd_${cmd}
fi
done
-
-
diff --git a/keyboards/ergodox/keymaps/algernon/tools/layer-notify b/keyboards/ergodox/keymaps/algernon/tools/layer-notify
deleted file mode 100755
index 627c2861ef..0000000000
--- a/keyboards/ergodox/keymaps/algernon/tools/layer-notify
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-HL="${HID_LISTEN:-$HOME/src/ext/hid_listen/hid_listen}"
-
-sudo "${HL}" | grep --line-buffered LAYER: | \
-(while read line; do
- case $line in
- LAYER:*)
- layer="$(echo $(echo $line | cut -d: -f2-))"
- notify-send -i mark-location-symbolic "Switched to layer: $layer"
- ;;
- esac
- done)
diff --git a/keyboards/ergodox/keymaps/algernon/tools/log-to-heatmap.py b/keyboards/ergodox/keymaps/algernon/tools/log-to-heatmap.py
index 09c737646c..e927e0e39d 100755
--- a/keyboards/ergodox/keymaps/algernon/tools/log-to-heatmap.py
+++ b/keyboards/ergodox/keymaps/algernon/tools/log-to-heatmap.py
@@ -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
diff --git a/keyboards/ergodox/keymaps/algernon/tools/text-to-log.py b/keyboards/ergodox/keymaps/algernon/tools/text-to-log.py
index e068c3cbfb..f080c32cd0 100755
--- a/keyboards/ergodox/keymaps/algernon/tools/text-to-log.py
+++ b/keyboards/ergodox/keymaps/algernon/tools/text-to-log.py
@@ -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]],