summaryrefslogtreecommitdiffstats
path: root/keyboards/9key/keymaps/bcat
diff options
context:
space:
mode:
authorJonathan Rascher <jon@bcat.name>2019-09-07 10:58:17 -0500
committerDrashna Jaelre <drashna@live.com>2019-09-07 08:58:17 -0700
commitd90038eb9cc62ffd4f0e4a6a3c6de54a8670f51b (patch)
treec5ee0767bd5a2d19304c2782e55b58ec5a774b71 /keyboards/9key/keymaps/bcat
parente88f80a891138d40acddcdd2b3dface8b2a57404 (diff)
[Keymap] Assorted personal keymap/userspace updates (#6691)
* Turn off more unnecessary features by default * Double TAP_CODE_DELAY due to more media key issues Even with this change, some of the rotary encoder turns on my BDN9's volume knob still seem to get dropped. It's possible there's something wrong with the encoder itself. (Maybe the TAP_CODE_DELAY actually causes QMK to miss an encoder turn? Unclear.) The other knob (backlight brightness) works fine, FWIW.... * Restructure userspace config.h a bit * Hack around Instant60 Via EEPROM conflict Remove this when #6589 is fixed for Via boards. * Add backlight breathing and (EEPROM) reset to BDN9 * Add keymap for 9-Key macropad
Diffstat (limited to 'keyboards/9key/keymaps/bcat')
-rw-r--r--keyboards/9key/keymaps/bcat/keymap.c26
-rw-r--r--keyboards/9key/keymaps/bcat/readme.md5
-rw-r--r--keyboards/9key/keymaps/bcat/rules.mk1
3 files changed, 32 insertions, 0 deletions
diff --git a/keyboards/9key/keymaps/bcat/keymap.c b/keyboards/9key/keymaps/bcat/keymap.c
new file mode 100644
index 0000000000..c42bc76c25
--- /dev/null
+++ b/keyboards/9key/keymaps/bcat/keymap.c
@@ -0,0 +1,26 @@
+#include QMK_KEYBOARD_H
+
+enum layer {
+ LAYER_DEFAULT,
+ LAYER_FUNCTION,
+};
+
+/* Switch to function layer when held. */
+#define LY_FUNC MO(LAYER_FUNCTION)
+
+/* Send Ctrl+Alt+L (Cinnamon screen lock shortcut) when pressed. */
+#define KY_LOCK LCA(KC_L)
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [LAYER_DEFAULT] = LAYOUT(
+ KC_MPLY, KC_VOLU, KC_MSTP,
+ KC_MPRV, KC_VOLD, KC_MNXT,
+ KY_LOCK, KC_MUTE, LY_FUNC
+ ),
+
+ [LAYER_FUNCTION] = LAYOUT(
+ EEP_RST, _______, RESET,
+ _______, _______, _______,
+ _______, _______, _______
+ ),
+};
diff --git a/keyboards/9key/keymaps/bcat/readme.md b/keyboards/9key/keymaps/bcat/readme.md
new file mode 100644
index 0000000000..2dee51de8b
--- /dev/null
+++ b/keyboards/9key/keymaps/bcat/readme.md
@@ -0,0 +1,5 @@
+# bcat's 9-Key layout
+
+This is a super simple PCB-mount macropad with nine keys, used at work for
+media keys and quick access to screen lock on Linux (Cinnamon desktop
+environment).
diff --git a/keyboards/9key/keymaps/bcat/rules.mk b/keyboards/9key/keymaps/bcat/rules.mk
new file mode 100644
index 0000000000..0ecc2bd661
--- /dev/null
+++ b/keyboards/9key/keymaps/bcat/rules.mk
@@ -0,0 +1 @@
+BOOTLOADER = caterina # Pro Micro