From 1a06e0ed72cdd8ed033205b15097c6d24f0a24b4 Mon Sep 17 00:00:00 2001 From: Kyle Brown Date: Thu, 7 Mar 2019 17:41:57 -0800 Subject: [PATCH] Renamed some things and added luddite layout for kdb424 and default --- .../__init__.py | 0 .../gherkin.py | 0 .../luddite.py | 0 user_keymaps/Default/__init__.py | 0 user_keymaps/Default/converter/__init__.py | 0 .../converter/fourtypercentclub/__init__.py | 0 .../converter/fourtypercentclub/luddite.py | 28 ++++++++ .../Default/converter/keebio/__init__.py | 0 .../{ => converter/keebio}/nyquist_r2.py | 0 user_keymaps/kdb424/luddite.py | 65 +++++++++++++++++++ 10 files changed, 93 insertions(+) rename kmk/boards/converter/{40percentclub => fourtypercentclub}/__init__.py (100%) rename kmk/boards/converter/{40percentclub => fourtypercentclub}/gherkin.py (100%) rename kmk/boards/converter/{40percentclub => fourtypercentclub}/luddite.py (100%) create mode 100644 user_keymaps/Default/__init__.py create mode 100644 user_keymaps/Default/converter/__init__.py create mode 100644 user_keymaps/Default/converter/fourtypercentclub/__init__.py create mode 100644 user_keymaps/Default/converter/fourtypercentclub/luddite.py create mode 100644 user_keymaps/Default/converter/keebio/__init__.py rename user_keymaps/Default/{ => converter/keebio}/nyquist_r2.py (100%) create mode 100644 user_keymaps/kdb424/luddite.py diff --git a/kmk/boards/converter/40percentclub/__init__.py b/kmk/boards/converter/fourtypercentclub/__init__.py similarity index 100% rename from kmk/boards/converter/40percentclub/__init__.py rename to kmk/boards/converter/fourtypercentclub/__init__.py diff --git a/kmk/boards/converter/40percentclub/gherkin.py b/kmk/boards/converter/fourtypercentclub/gherkin.py similarity index 100% rename from kmk/boards/converter/40percentclub/gherkin.py rename to kmk/boards/converter/fourtypercentclub/gherkin.py diff --git a/kmk/boards/converter/40percentclub/luddite.py b/kmk/boards/converter/fourtypercentclub/luddite.py similarity index 100% rename from kmk/boards/converter/40percentclub/luddite.py rename to kmk/boards/converter/fourtypercentclub/luddite.py diff --git a/user_keymaps/Default/__init__.py b/user_keymaps/Default/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/user_keymaps/Default/converter/__init__.py b/user_keymaps/Default/converter/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/user_keymaps/Default/converter/fourtypercentclub/__init__.py b/user_keymaps/Default/converter/fourtypercentclub/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/user_keymaps/Default/converter/fourtypercentclub/luddite.py b/user_keymaps/Default/converter/fourtypercentclub/luddite.py new file mode 100644 index 0000000..7be1533 --- /dev/null +++ b/user_keymaps/Default/converter/fourtypercentclub/luddite.py @@ -0,0 +1,28 @@ +from kmk.boards.converter.fourtypercentclub.luddite import Firmware +from kmk.keys import KC + +keyboard = Firmware() + +_______ = KC.TRNS +XXXXXXX = KC.NO + +BASE = 0 +FN1 = 1 + +keyboard.keymap = [ + [ + [KC.GESC, KC.N1, KC.N2, KC.N3, KC.N4, KC.N5, KC.N6, KC.N7, KC.N8, KC.N9, KC.N0, KC.MINS, KC.EQL, KC.BSPC], + [KC.TAB, KC.Q, KC.W, KC.E, KC.R, KC.T, KC.Y, KC.U, KC.I, KC.O, KC.P, KC.LBRC, KC.RBRC, KC.BSLS], + [KC.CAPS, KC.A, KC.S, KC.D, KC.F, KC.G, KC.H, KC.J, KC.K, KC.L, KC.SCLN, KC.QUOT, KC.ENT], + [KC.LSFT, KC.Z, KC.X, KC.C, KC.V, KC.B, KC.N, KC.M, KC.COMM, KC.DOT, KC.SLSH, KC.RSFT], + [KC.LCTL, KC.LGUI, KC.LALT, KC.SPC, KC.RALT, KC.RGUI, KC.MO(FN1), KC.RCTL], + ], + + [ + [KC.GESC, KC.F1, KC.F2, KC.F3, KC.F4, KC.F5, KC.F6, KC.F7, KC.F8, KC.F9, KC.F10, KC.F11, KC.F12, KC.BSPC], + [KC.RGB_TOG, _______, KC.UP, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______], + [_______, KC.LEFT, KC.DOWN, KC.RGHT, _______, _______, _______, _______, _______, _______, _______, _______, _______], + [KC.LED_INC, KC.LED_DEC, KC.LED_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______], + [KC.GRV, _______, _______, _______, _______, _______, _______, _______], + ], +] diff --git a/user_keymaps/Default/converter/keebio/__init__.py b/user_keymaps/Default/converter/keebio/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/user_keymaps/Default/nyquist_r2.py b/user_keymaps/Default/converter/keebio/nyquist_r2.py similarity index 100% rename from user_keymaps/Default/nyquist_r2.py rename to user_keymaps/Default/converter/keebio/nyquist_r2.py diff --git a/user_keymaps/kdb424/luddite.py b/user_keymaps/kdb424/luddite.py new file mode 100644 index 0000000..2918197 --- /dev/null +++ b/user_keymaps/kdb424/luddite.py @@ -0,0 +1,65 @@ +from kmk.boards.converter.fourtypercentclub.luddite import Firmware +from kmk.consts import LeaderMode, UnicodeMode +from kmk.handlers.sequences import compile_unicode_string_sequences +from kmk.keys import KC + +keyboard = Firmware() + +# ---------------------------------- Config -------------------------------------------- + +keyboard.leader_mode = LeaderMode.TIMEOUT +keyboard.unicode_mode = UnicodeMode.LINUX +keyboard.tap_time = 150 +keyboard.leader_timeout = 2000 + +# ---------------------- Leader Key Macros -------------------------------------------- + +emoticons = compile_unicode_string_sequences({ + # Emoticons, but fancier + 'ANGRY_TABLE_FLIP': r'(ノಠ痊ಠ)ノ彡┻━┻', + 'CHEER': r'+。:.゚ヽ(´∀。)ノ゚.:。+゚゚+。:.゚ヽ(*´∀)ノ゚.:。+゚', + 'TABLE_FLIP': r'(╯°□°)╯︵ ┻━┻', + 'WAT': r'⊙.☉', + 'FF': r'凸(゚Д゚#)', + 'F': r'( ̄^ ̄)凸', + 'MEH': r'╮( ̄_ ̄)╭', + 'YAY': r'o(^▽^)o', +}) + + +keyboard.leader_dictionary = { + 'flip': emoticons.ANGRY_TABLE_FLIP, + 'cheer': emoticons.CHEER, + 'wat': emoticons.WAT, + 'ff': emoticons.FF, + 'f': emoticons.F, + 'meh': emoticons.MEH, + 'yay': emoticons.YAY, +} + +# ---------------------- Keymap --------------------------------------------------------- + + +_______ = KC.TRNS +XXXXXXX = KC.NO + +BASE = 0 +FN1 = 1 + +keyboard.keymap = [ + [ + [KC.GESC, KC.N1, KC.N2, KC.N3, KC.N4, KC.N5, KC.N6, KC.N7, KC.N8, KC.N9, KC.N0, KC.LBRC, KC.RBRC, KC.BSPC], + [KC.LEAD, KC.QUOT, KC.COMM, KC.DOT, KC.P, KC.Y, KC.F, KC.G, KC.C, KC.R, KC.L, KC.SLSH, KC.EQL, KC.BSLS], + [KC.TAB, KC.A, KC.O, KC.E, KC.U, KC.I, KC.D, KC.H, KC.T, KC.N, KC.S, KC.MINS, KC.ENT], + [KC.LSFT, KC.SCLN, KC.Q, KC.J, KC.K, KC.X, KC.B, KC.M, KC.W, KC.V, KC.Z, KC.RSFT], + [KC.LCTL, KC.LGUI, KC.MO(FN1), KC.SPC, KC.LEFT, KC.DOWN, KC.UP, KC.RIGHT], + ], + + [ + [KC.GESC, KC.F1, KC.F2, KC.F3, KC.F4, KC.F5, KC.F6, KC.F7, KC.F8, KC.F9, KC.F10, KC.F11, KC.F12, KC.DEL], + [KC.RGB_TOG, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC.VOLU, _______], + [_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, KC.VOLD, _______], + [_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______], + [KC.GRV, _______, _______, _______, KC.LALT, _______, _______, _______], + ], +]