Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
QMK Bot 2023-04-05 18:36:25 +00:00
commit 89713112cd
25 changed files with 896 additions and 0 deletions

View file

@ -0,0 +1,22 @@
// Copyright 2023 Peter.Falken (@PeterFalken)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
// Fix warning - "Attached USB accessory uses too much power."
#ifndef USB_MAX_POWER_CONSUMPTION
#define USB_MAX_POWER_CONSUMPTION 100
#endif
// Fix unresponsiveness on wake from sleep
#ifndef USB_SUSPEND_WAKEUP_DELAY
#define USB_SUSPEND_WAKEUP_DELAY 200
#endif
// Space optimizations
#undef LOCKING_SUPPORT_ENABLE
#undef LOCKING_RESYNC_ENABLE
// Disable animations for RGB underglow & key matrix
#define DISABLE_RGB_LIGHT_ANIMATIONS
#define DISABLE_RGB_MATRIX_ANIMATIONS

View file

@ -0,0 +1,11 @@
// Copyright 2023 Peter.Falken (@PeterFalken)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "peterfalken.h"
// Switch layer
#ifndef CUSTOM_LAYER_STATE
layer_state_t layer_state_set_user(layer_state_t state) {
return update_tri_layer_state(state, _LOWER, _RAISE, _ADJUST);
}
#endif // CUSTOM_LAYER_STATE

View file

@ -0,0 +1,27 @@
// Copyright 2023 Peter.Falken (@PeterFalken)
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include QMK_KEYBOARD_H
#ifndef CUSTOM_KEYMAP_LAYERS
enum default_layers {
_QWERTY,
_LOWER,
_RAISE,
_ADJUST
};
#endif // CUSTOM_KEYMAP_LAYERS
// Custom definitions for keys
#define CK_CW CW_TOGG // CAPS_WORD for Caps Word feature
#define CK_SLP KC_SLEP // System Sleep
#define CK_M1 C(KC_DOWN) // Mission Control - One apps
#define CK_CO KC_COPY // COPY = CMD + C
#define CK_CU KC_CUT // CUT = CMD + X
#define CK_MV LAG(KC_V) // MOVE = CMD + OPT + V
#define CK_PA KC_PASTE // PASTE = CMD + V
// Layer activation
#define LOWER MO(_LOWER)
#define RAISE MO(_RAISE)

View file

@ -0,0 +1,14 @@
Copyright 2023 LEG <ucaboys@gmail.com> @PeterFalken
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/>.

View file

@ -0,0 +1,18 @@
# Setup QMK features
BOOTMAGIC_ENABLE = yes # Enable QMK_Boot on plug-in
CAPS_WORD_ENABLE = yes # Enable Caps Word
COMMAND_ENABLE = no # Won't use for now
CONSOLE_ENABLE = no # Won't use for now
DIP_SWITCH_ENABLE = no # Won't use for now
GRAVE_ESC_ENABLE = no # Won't use for now
MAGIC_ENABLE = no # Won't use for now
MOUSEKEY_ENABLE = no # Won't use for now
RAW_ENABLE = no # Disable raw HID commands
RGBLIGHT_ENABLE = no # Disable RGB underglow
SPACE_CADET_ENABLE = no # Free up space
# Enable Link Time Optimizations
LTO_ENABLE = yes
# Include userspace files
SRC += $(USER_PATH)/peterfalken.c