[Keymap] Drashna Keymap updates for 0.21.0 (#21073)

This commit is contained in:
Drashna Jaelre 2023-05-31 11:44:06 -07:00 committed by GitHub
parent 1411c79aef
commit 3a3e5abac9
Failed to generate hash of commit
71 changed files with 1609 additions and 2215 deletions

View file

@ -4,7 +4,7 @@
#pragma once
#include QMK_KEYBOARD_H
#include "eeprom.h"
#include "eeconfig_users.h"
#include "keyrecords/wrappers.h"
#include "keyrecords/process_records.h"
#include "callbacks.h"
@ -30,6 +30,9 @@
#ifdef OS_DETECTION_ENABLE
# include "os_detection.h"
#endif
#ifdef UNICODE_COMMON_ENABLE
# include "keyrecords/unicode.h"
#endif
/* Define layer names */
enum userspace_layers {
@ -88,14 +91,25 @@ void format_layer_bitmap_string(char* buffer, layer_state_t state, layer_state_t
typedef union {
uint32_t raw;
struct {
bool rgb_layer_change :1;
bool is_overwatch :1;
bool nuke_switch :1;
bool swapped_numbers :1;
bool rgb_matrix_idle_anim :1;
bool autocorrection :1;
bool rgb_layer_change :1;
bool is_overwatch :1;
bool nuke_switch :1;
bool swapped_numbers :1;
bool rgb_matrix_idle_anim :1;
bool mouse_jiggler :1;
uint8_t align_reserved :2;
uint8_t oled_brightness :8;
uint32_t reserved :15;
bool check :1;
};
} userspace_config_t;
// clang-format on
_Static_assert(sizeof(userspace_config_t) == sizeof(uint32_t), "Userspace EECONFIG out of spec.");
extern userspace_config_t userspace_config;
void set_keyboard_lock(bool enable);
bool get_keyboard_lock(void);
void toggle_keyboard_lock(void);
const char* get_layer_name_string(layer_state_t state, bool alt_name);