[Keymap] New planck keymap (#6093)

* New keymap

* Add readme; fix lack of asterisk on raise

* Update default planck map to tap_code vs reg/unreg

* Press F to pay respects
This commit is contained in:
mgalisa
2019-06-11 18:02:33 -05:00
committed by Drashna Jaelre
parent 5343eaf89a
commit 29824f3cf7
5 changed files with 467 additions and 8 deletions

View File

@ -274,19 +274,15 @@ void encoder_update(bool clockwise) {
} else {
if (clockwise) {
#ifdef MOUSEKEY_ENABLE
register_code(KC_MS_WH_DOWN);
unregister_code(KC_MS_WH_DOWN);
tap_code(KC_MS_WH_DOWN);
#else
register_code(KC_PGDN);
unregister_code(KC_PGDN);
tap_code(KC_PGDN);
#endif
} else {
#ifdef MOUSEKEY_ENABLE
register_code(KC_MS_WH_UP);
unregister_code(KC_MS_WH_UP);
tap_code(KC_MS_WH_UP);
#else
register_code(KC_PGUP);
unregister_code(KC_PGUP);
tap_code(KC_PGUP);
#endif
}
}

View File

@ -0,0 +1,39 @@
#pragma once
#ifdef AUDIO_ENABLE
#define STARTUP_SONG SONG(PLANCK_SOUND)
// #define STARTUP_SONG SONG(NO_SOUND)
#define DEFAULT_LAYER_SONGS { SONG(QWERTY_SOUND), \
SONG(COLEMAK_SOUND), \
SONG(DVORAK_SOUND) \
}
#endif
/*
* MIDI options
*/
/* Prevent use of disabled MIDI features in the keymap */
//#define MIDI_ENABLE_STRICT 1
/* enable basic MIDI features:
- MIDI notes can be sent when in Music mode is on
*/
#define MIDI_BASIC
/* enable advanced MIDI features:
- MIDI notes can be added to the keymap
- Octave shift and transpose
- Virtual sustain, portamento, and modulation wheel
- etc.
*/
//#define MIDI_ADVANCED
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
//#define MIDI_TONE_KEYCODE_OCTAVES 2
// Most tactile encoders have detents every 4 stages
#define ENCODER_RESOLUTION 4

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,15 @@
# @mgalisa's Planck keymap
A minor (so far) update to the default keymap. Probably more to come.
## Raise layer
![Raise layer](https://i.imgur.com/n0f4275.png)
* Moved F-keys and number keys into 4x3 and 3x3 grid patterns for pseudo-numpad like effect
* Added macros to the middle column that insert bracket/brace/paren pairs and moves the cursor inbetween
* Minor adjustments
## Emoji layer
Activate by holding the Esc key from QWERTY/Dvorak/Colemak. Holds macros primarily for annoying coworkers via Slack.

View File

@ -0,0 +1,6 @@
SRC += muse.c
EXTRAKEY_ENABLE = yes
# RGBLIGHT_ENABLE = yes
## I bought the WS2812s...
## just need the main branch to be updated.
# Uncomment to make build fail.