summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/peterfalken/config.h22
-rw-r--r--users/peterfalken/peterfalken.c11
-rw-r--r--users/peterfalken/peterfalken.h27
-rw-r--r--users/peterfalken/readme.md14
-rw-r--r--users/peterfalken/rules.mk18
5 files changed, 92 insertions, 0 deletions
diff --git a/users/peterfalken/config.h b/users/peterfalken/config.h
new file mode 100644
index 0000000000..5295923ec6
--- /dev/null
+++ b/users/peterfalken/config.h
@@ -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
diff --git a/users/peterfalken/peterfalken.c b/users/peterfalken/peterfalken.c
new file mode 100644
index 0000000000..5041f29da6
--- /dev/null
+++ b/users/peterfalken/peterfalken.c
@@ -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
diff --git a/users/peterfalken/peterfalken.h b/users/peterfalken/peterfalken.h
new file mode 100644
index 0000000000..1f978c49e8
--- /dev/null
+++ b/users/peterfalken/peterfalken.h
@@ -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)
diff --git a/users/peterfalken/readme.md b/users/peterfalken/readme.md
new file mode 100644
index 0000000000..f64d682a51
--- /dev/null
+++ b/users/peterfalken/readme.md
@@ -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/>.
diff --git a/users/peterfalken/rules.mk b/users/peterfalken/rules.mk
new file mode 100644
index 0000000000..dfa5d574aa
--- /dev/null
+++ b/users/peterfalken/rules.mk
@@ -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