Keymap: Adding my DZ60, Satan, XD75 kemaps and updates to userspace (#4039)
* Update userspace with common config.h * Add my dz60, satan and xd75 keyboard keymaps * Fixing executable bits changed during last upstream merge * Cleanup unnecessary files and defines * Remove unnecessary defines from userspace config
This commit is contained in:
parent
1a33054a35
commit
5c2ac733af
12 changed files with 174 additions and 23 deletions
50
users/jarred/config.h
Normal file
50
users/jarred/config.h
Normal file
|
@ -0,0 +1,50 @@
|
|||
/* Copyright 2018 Jarred Steenvoorden
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
// Sets good default for the speed of the mouse.
|
||||
#undef MOUSEKEY_INTERVAL
|
||||
#undef MOUSEKEY_DELAY
|
||||
#undef MOUSEKEY_TIME_TO_MAX
|
||||
#undef MOUSEKEY_MAX_SPEED
|
||||
|
||||
#define MOUSEKEY_INTERVAL 16
|
||||
#define MOUSEKEY_DELAY 0
|
||||
#define MOUSEKEY_TIME_TO_MAX 40
|
||||
#define MOUSEKEY_MAX_SPEED 5
|
||||
|
||||
#undef MOUSEKEY_WHEEL_MAX_SPEED
|
||||
#undef MOUSEKEY_WHEEL_TIME_TO_MAX
|
||||
#undef MOUSEKEY_WHEEL_DELAY
|
||||
|
||||
#define MOUSEKEY_WHEEL_MAX_SPEED 4
|
||||
#define MOUSEKEY_WHEEL_TIME_TO_MAX 255
|
||||
#define MOUSEKEY_WHEEL_DELAY 0
|
||||
|
||||
#undef TAPPING_TOGGLE
|
||||
#undef TAPPING_TERM
|
||||
#undef IGNORE_MOD_TAP_INTERRUPT
|
||||
|
||||
#define TAPPING_TOGGLE 1
|
||||
#define TAPPING_TERM 200
|
||||
#define IGNORE_MOD_TAP_INTERRUPT
|
||||
|
||||
#ifdef AUDIO_ENABLE
|
||||
#define STARTUP_SONG SONG(PLANCK_SOUND)
|
||||
#endif
|
||||
|
||||
#define MACRO_TIMER 5
|
|
@ -15,3 +15,18 @@
|
|||
*/
|
||||
|
||||
#include "jarred.h"
|
||||
#include "version.h"
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
|
||||
switch (keycode) {
|
||||
case VRSN: // Prints firmware version
|
||||
if (record->event.pressed) {
|
||||
send_string_with_delay_P(PSTR(QMK_KEYBOARD "/" QMK_KEYMAP " @ " QMK_VERSION ", Built on: " QMK_BUILDDATE), MACRO_TIMER);
|
||||
}
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -19,9 +19,9 @@
|
|||
|
||||
#include "quantum.h"
|
||||
|
||||
// Use 7 wide characters for keymaps
|
||||
#define _______ KC_TRNS
|
||||
#define XXXXXXX KC_NO
|
||||
enum userspace_custom_keycodes {
|
||||
VRSN = SAFE_RANGE // Prints QMK Firmware and board info
|
||||
};
|
||||
|
||||
// Layers
|
||||
#define _QW 0
|
||||
|
@ -72,7 +72,7 @@
|
|||
#define NUMPAD_L1 RGB_TOG, RGB_MOD, _______, _______, RGB_HUD, RGB_HUI
|
||||
#define NUMPAD_L2 BL_TOGG, BL_STEP, BL_BRTG, _______, RGB_SAD, RGB_SAI
|
||||
#define NUMPAD_L3 _______, _______, _______, _______, RGB_VAD, RGB_VAI
|
||||
#define NUMPAD_L4 RESET, _______, _______, _______, RGB_SPD, RGB_SPI
|
||||
#define NUMPAD_L4 RESET, VRSN, _______, _______, RGB_SPD, RGB_SPI
|
||||
|
||||
#define NUMPAD_R1 _______, KC_P7, KC_P8, KC_P9, KC_PMNS, _______
|
||||
#define NUMPAD_R2 _______, KC_P4, KC_P5, KC_P6, KC_PPLS, _______
|
||||
|
|
|
@ -1 +1,16 @@
|
|||
SRC += jarred.c
|
||||
|
||||
ifneq (,$(findstring planck,$(KEYBOARD)))
|
||||
# Enable backlight for rev4 planck only
|
||||
ifneq (,$(findstring rev4,$(KEYBOARD)))
|
||||
BACKLIGHT_ENABLE = yes
|
||||
BACKLIGHT_BREATHING = yes
|
||||
else
|
||||
BACKLIGHT_ENABLE = no
|
||||
BACKLIGHT_BREATHING = no
|
||||
endif
|
||||
|
||||
AUDIO_ENABLE = yes
|
||||
endif
|
||||
|
||||
MOUSEKEY_ENABLE = no
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue