summaryrefslogtreecommitdiffstats
path: root/layouts/community/ergodox/adnw_p_u_q
diff options
context:
space:
mode:
authorrschardt <42609861+rschardt@users.noreply.github.com>2018-08-31 17:44:15 +0200
committerDrashna Jaelre <drashna@live.com>2018-08-31 08:44:15 -0700
commitc51b2266a06aeac767c41e6f0f8054db531a156f (patch)
tree93ed5b30ab89282a876469797f44c1275774ca9e /layouts/community/ergodox/adnw_p_u_q
parent78ef62764bfba2b7cb1fb34e477953c16c7a926d (diff)
Keymap: Adding adnw_puq-Layout for Ergodox (#3723)
* added adnw_p_u_q-Layout * changed link * 3723 - outsource definitions to config.h * added TAPPING_TERM * changed defines and added colors * removed debug- and action_layer-Header
Diffstat (limited to 'layouts/community/ergodox/adnw_p_u_q')
-rw-r--r--layouts/community/ergodox/adnw_p_u_q/config.h9
-rw-r--r--layouts/community/ergodox/adnw_p_u_q/keymap.c335
-rw-r--r--layouts/community/ergodox/adnw_p_u_q/readme.md17
-rw-r--r--layouts/community/ergodox/adnw_p_u_q/visualizer.c34
4 files changed, 395 insertions, 0 deletions
diff --git a/layouts/community/ergodox/adnw_p_u_q/config.h b/layouts/community/ergodox/adnw_p_u_q/config.h
new file mode 100644
index 0000000000..b1170aa78c
--- /dev/null
+++ b/layouts/community/ergodox/adnw_p_u_q/config.h
@@ -0,0 +1,9 @@
+#pragma once
+
+// This is the ideal value for me but find your own
+#undef TAPPING_TERM
+#define TAPPING_TERM 145
+
+// more options here: https://docs.qmk.fm/config_options.html
+#define FORCE_NKRO
+#define PERMISSIVE_HOLD // tab/hold-Keys should work better with that
diff --git a/layouts/community/ergodox/adnw_p_u_q/keymap.c b/layouts/community/ergodox/adnw_p_u_q/keymap.c
new file mode 100644
index 0000000000..a90fcbc2c7
--- /dev/null
+++ b/layouts/community/ergodox/adnw_p_u_q/keymap.c
@@ -0,0 +1,335 @@
+#include QMK_KEYBOARD_H
+#include "keymap_german.h"
+
+
+#define BASE 0 // default layer / VIM
+#define ARW 1 // arrow layer / Terminal
+#define DIAK 2 // diakritika layer
+#define BRACK 3 // brackets layer
+#define SYMBOLS 4 // symbols
+#define MEDIA 5 // media keys / Mouse-Navigation
+
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+/* Keymap 0: Basic layer / VIM
+ * ,--------------------------------------------------. ,--------------------------------------------------.
+ * | | 1 | 2 | 3 | 4 | 5 | | | | 6 | 7 | 8 | 9 | 0 | Media |
+ * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
+ * | | P | U | Dia-L| , | Q | | | | V | C | L | M | B | |
+ * |--------+------+------+------+------+------| G | | gg |------+------+------+------+------+--------|
+ * | Symbols| H | I | E | A | O |------| |------| D | T | R | N | S | ARW |
+ * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
+ * | LShift | K | Y | . | ' | X |str-D | |str-U | J | G | Z | W | F | RShift |
+ * * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
+ * | Ctrl | Alt | | | | | H | J | K | L | Ctrl |
+ * `----------------------------------' `----------------------------------'
+ * LShift is Tab on Click
+ *
+ * ,-------------. ,-------------.
+ * | ^ | / | | ? | $ |
+ * ,------|------|------| |------+--------+------.
+ * | | |str+a | |str+c | | |
+ * | Brack| Space|------| |------| Enter |BSpace|
+ * | -Lay |/shift| Tab/ | | | | |
+ * | | | GUI | | ESC | | |
+ * `--------------------' `----------------------'
+ * GUI is one shot
+ * str + a is for tmux etc.
+ * str + c is for stopping programs
+ */
+[BASE] = LAYOUT_ergodox( // layer 0 : default
+ // left hand
+ KC_NO, KC_1, KC_2, KC_3, KC_4, KC_5, KC_NO,
+ TG(SYMBOLS), DE_P, DE_U, OSL(DIAK), DE_COMM, DE_Q, LSFT(DE_G),
+ OSL(SYMBOLS), DE_H, DE_I, DE_E, DE_A, DE_O,
+ SFT_T(KC_TAB), DE_K, DE_Y, DE_DOT, DE_QUOT, DE_X, LCTL(DE_D),
+ KC_LCTRL, KC_LALT, KC_NO, KC_NO, KC_NO,
+
+
+ // left hand thumb-cluster
+ DE_CIRC, DE_SLSH,
+ LCTL(DE_A),
+ OSL(BRACK), SFT_T(KC_SPACE), GUI_T(KC_TAB),
+
+
+ // right hand
+ KC_NO, KC_6, KC_7, KC_8, KC_9, KC_0, TG(MEDIA),
+ DE_G, DE_V, DE_C, DE_L, DE_M, DE_B, KC_NO,
+ DE_D, DE_T, DE_R, DE_N, DE_S, TG(ARW),
+ LCTL(DE_U), DE_J, DE_G, DE_Z, DE_W, DE_F, KC_RSFT,
+ KC_H, KC_J, KC_K, KC_L, KC_RCTRL,
+
+ // right thumb-cluster
+ DE_QST, DE_DLR,
+ LCTL(DE_C),
+ KC_ESCAPE, KC_ENTER, KC_BSPACE
+),
+
+
+/* Keymap 1: Arrow Layer / Terminal
+ *
+ * ,--------------------------------------------------. ,--------------------------------------------------.
+ * | | | | | | | | | | | | | | | |
+ * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
+ * | | | | | | | | | | | | | | | |
+ * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
+ * | | | | | | |------| |------| | | | | | |
+ * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
+ * | | | | | | |P-Down| |P-Up | | | | | | |
+ * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
+ * | | | | | | | Left | Bot | Top | Right| |
+ * `----------------------------------' `----------------------------------'
+ * ,-------------. ,-------------.
+ * | Home | | | | End |
+ * ,------|------|------| |------+------+------.
+ * | | | | | | | |
+ * | | |------| |------| | |
+ * | | | | | | | |
+ * `--------------------' `--------------------'
+ */
+// Arrows
+[ARW] = LAYOUT_ergodox(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_PGDOWN,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_HOME, KC_TRNS,
+ KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS,
+
+ // right hand
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_PGUP, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_LEFT, KC_DOWN, KC_UP, KC_RIGHT, KC_TRNS,
+ KC_TRNS, KC_END,
+ KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS
+),
+
+
+/* Keymap 2: Diakritika Layer
+ *
+ * ,--------------------------------------------------. ,--------------------------------------------------.
+ * | | | | | | | | | | | | | | | |
+ * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
+ * | | | Ü | | | | | | | | | | | | |
+ * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
+ * | | | | | Ä | Ö |------| |------| | | | | ß | |
+ * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
+ * | | | | | | | | | | | | | | | |
+ * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
+ * | | | | | | | | | | | |
+ * `----------------------------------' `----------------------------------'
+ * ,-------------. ,-------------.
+ * | | | | | |
+ * ,------|------|------| |------+------+------.
+ * | | | | | | | |
+ * | | |------| |------| | |
+ * | | | | | | | |
+ * `--------------------' `--------------------'
+ */
+// Diakritika
+[DIAK] = LAYOUT_ergodox(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, DE_UE, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, DE_AE, DE_OE,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS,
+
+ // right hand
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, DE_SS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS
+),
+
+
+/* Keymap 3: Brackets Layer
+ *
+ * ,--------------------------------------------------. ,--------------------------------------------------.
+ * | | | | | | | | | | | | | | | |
+ * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
+ * | | | | | | | | | | | | | | | |
+ * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
+ * | | | ( | { | [ | |------| |------| | ] | } | ) | | |
+ * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
+ * | | | | | | | | | | | | | | | |
+ * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
+ * | | | | | | | | | | | |
+ * `----------------------------------' `----------------------------------'
+ * ,-------------. ,-------------.
+ * | | | | | |
+ * ,------|------|------| |------+------+------.
+ * | | | | | | | |
+ * | | |------| |------| | |
+ * | | | | | | | |
+ * `--------------------' `--------------------'
+ */
+// BRACK
+[BRACK] = LAYOUT_ergodox(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, DE_LPRN, DE_LCBR, DE_LBRC, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS,
+
+ // right hand
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, DE_RBRC, DE_RCBR, DE_RPRN, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS
+),
+
+
+/* Keymap 4: Symbol Layer
+ *
+ *
+ * Original:
+ * ,--------------------------------------------------. ,--------------------------------------------------.
+ * | | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 | |
+ * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
+ * | | ² | ° | ~ | @ | ! | | | | ? | & | § | " | ³ | |
+ * |--------+------+------+------+------+------| ( | | ) |------+------+------+------+------+--------|
+ * | | ´ | ' | : | ^ | < |------| |------| > | $ | ; | | | ` | |
+ * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
+ * | | € | + | = | * | / | { | | } | \ | % | # | - | _ | |
+ * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
+ * | | | | | | | | | | | |
+ * `----------------------------------' `----------------------------------'
+ */
+// SYMBOLS
+[SYMBOLS] = LAYOUT_ergodox(
+ // left hand
+ KC_TRNS, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, KC_F6, //DE_LBRC,
+ KC_TRNS,DE_SQ2, DE_RING, DE_TILD, DE_AT, DE_EXLM, DE_LPRN,
+ KC_TRNS,DE_ACUT,DE_QUOT, DE_COLN, DE_CIRC, DE_LESS,
+ KC_TRNS,DE_EURO,DE_PLUS, DE_EQL, DE_ASTR, DE_SLSH, DE_LCBR,
+ KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,KC_TRNS,
+
+ KC_TRNS,KC_TRNS,
+ KC_TRNS,
+ KC_TRNS,KC_TRNS,KC_TRNS,
+
+ // right hand
+ //DE_RBRC,
+ KC_F7, KC_F8, KC_F9, KC_F10, KC_F11, KC_F12, KC_TRNS,
+ DE_RPRN, DE_QST, DE_AMPR, DE_PARA, DE_DQOT, DE_SQ3, KC_TRNS,
+ DE_MORE, DE_DLR, DE_SCLN, DE_PIPE, DE_GRV, KC_TRNS,
+ DE_RCBR, DE_BSLS, DE_PERC, DE_HASH, DE_MINS, DE_UNDS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+
+ KC_TRNS, KC_TRNS,
+ KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS
+),
+
+/* Keymap 5: Numbers
+ *
+ * ,--------------------------------------------------. ,--------------------------------------------------.
+ * | | | | | | | | | | | | Num | / | * | - |
+ * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
+ * | | | | | | | | | | | | 7 | 8 | 9 | + |
+ * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
+ * | | | | | | |------| |------| | | 4 | 5 | 6 | + |
+ * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
+ * | | | | | | | | | | | | 1 | 2 | 3 | Enter |
+ * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
+ * | | | | | | | 0 | , | | | Enter|
+ * `----------------------------------' `----------------------------------'
+ * ,-------------. ,-------------.
+ * | | | | | |
+ * ,------|------|------| |------+------+------.
+ * | | | | | | | |
+ * | | |------| |------| | |
+ * | | | | | | | |
+ * `--------------------' `--------------------'
+// NUMBERS
+[NUMBERS] = LAYOUT_ergodox(
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS,
+
+ // right hand
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_7, KC_8, KC_9, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_4, KC_5, KC_8, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS, KC_1, KC_2, KC_3, KC_TRNS,
+ KC_0, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_TRNS
+),
+
+
+*/
+
+/* Keymap 6: Media and mouse keys
+ *
+ * ,--------------------------------------------------. ,--------------------------------------------------.
+ * | | | | | | | | | | | | | | | |
+ * |--------+------+------+------+------+-------------| |------+------+------+------+------+------+--------|
+ * | | Sleep| | | | | | | | | | | | | |
+ * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
+ * | | Wake | | | | |------| |------| |MsLeft|MsDown| MsUp |MsRght| |
+ * |--------+------+------+------+------+------| | | |------+------+------+------+------+--------|
+ * | | | | | | | | | | | | | | | |
+ * `--------+------+------+------+------+-------------' `-------------+------+------+------+------+--------'
+ * | | | Mute| VolDn| VolUp| | Play| Prev | Next | Stop | |
+ * `----------------------------------' `----------------------------------'
+ * ,-------------. ,-------------.
+ * | | | | | |
+ * ,------|------|------| |------+------+------.
+ * | | | | | | | |
+ * | | Lclk|------| |------|Rclk | |
+ * | | | | | | | |
+ * `--------------------' `--------------------'
+ */
+// MEDIA AND MOUSE
+[MEDIA] = LAYOUT_ergodox(
+ KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_TRNS, KC_SLEP, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_TRNS, KC_WAKE, KC_NO, KC_NO, KC_NO, KC_TRNS,
+ KC_TRNS, KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO,
+ KC_TRNS, KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS,
+ KC_TRNS, KC_BTN1, KC_TRNS,
+ // right hand
+ KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS,
+ KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS,
+ KC_TRNS, KC_MS_L, KC_MS_D, KC_MS_U, KC_MS_R, KC_TRNS,
+ KC_TRNS, KC_NO, KC_NO, KC_NO, KC_NO, KC_NO, KC_TRNS,
+ KC_MPLY, KC_MPRV, KC_MNXT, KC_MSTP, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS,
+ KC_TRNS, KC_BTN2, KC_TRNS
+),
+};
+
+// Runs constantly in the background, in a loop.
+void matrix_scan_user_keyboard(void) {
+ ergodox_board_led_on();
+ ergodox_led_all_on();
+}
diff --git a/layouts/community/ergodox/adnw_p_u_q/readme.md b/layouts/community/ergodox/adnw_p_u_q/readme.md
new file mode 100644
index 0000000000..dc914a0aa2
--- /dev/null
+++ b/layouts/community/ergodox/adnw_p_u_q/readme.md
@@ -0,0 +1,17 @@
+This is a fork of the adnw_k_o_y-Layout
+
+Features:
+- Diakritika-Layer for ADNW-PUQ-Layout
+- all basic-symbols of the german-layout can be found in the Symbol- and Diakritika-Layer
+- Symbol-Layer: Symbols are mirrored -- left = < and right = >
+- Basic-Layer-Keys which always be present in any Layer and allow the movement between layers
+- HJKL-Keys and Arrow-Keys can be switched, necessary for working with a terminal and vim
+- Number-Layer for Numpad-Emulation
+- Brackets-Layer for easier programming
+- Media-Layer for Mouse-Navigation
+
+Notes:
+- adnw is a layout optimised for usage with german and english language
+- PUQ is a variant of adnw: http://www.adnw.de/index.php?n=Main.OptimierungF%C3%BCrDieGeradeTastaturMitDaumen-Shift
+- This implementation is optimised for my workflow with vim/tmux/xmonad and ergodox
+- The OS must use the de_DE layout
diff --git a/layouts/community/ergodox/adnw_p_u_q/visualizer.c b/layouts/community/ergodox/adnw_p_u_q/visualizer.c
new file mode 100644
index 0000000000..9a4d485387
--- /dev/null
+++ b/layouts/community/ergodox/adnw_p_u_q/visualizer.c
@@ -0,0 +1,34 @@
+/*
+Note: this is a modified copy of ../default/visualizer.c, originally licensed GPL.
+*/
+
+#include "simple_visualizer.h"
+
+// This function should be implemented by the keymap visualizer
+// Don't change anything else than state->target_lcd_color and state->layer_text as that's the only thing
+// that the simple_visualizer assumes that you are updating
+// Also make sure that the buffer passed to state->layer_text remains valid until the previous animation is
+// stopped. This can be done by either double buffering it or by using constant strings
+static void get_visualizer_layer_and_color(visualizer_state_t* state) {
+
+ if (state->status.layer & 0x20) {
+ state->target_lcd_color = LCD_COLOR(127, 0xFF, 0xFF);
+ state->layer_text = "Mouse";
+ } else if (state->status.layer & 0x10) {
+ state->target_lcd_color = LCD_COLOR(85, 0xFF, 0xFF);
+ state->layer_text = "Symbol";
+ } else if (state->status.layer & 0x8) {
+ state->target_lcd_color = LCD_COLOR(64, 0xFF, 0xFF);
+ state->layer_text = "Brackets";
+ } else if (state->status.layer & 0x4) {
+ state->target_lcd_color = LCD_COLOR(42, 0xFF, 0xFF);
+ state->layer_text = "Diak";
+ } else if (state->status.layer & 0x2) {
+ state->target_lcd_color = LCD_COLOR(21, 0xFF, 0xFF);
+ state->layer_text = "Terminal";
+ } else {
+ state->target_lcd_color = LCD_COLOR(192, 0xFF, 0xFF);
+ state->layer_text = "Vim";
+ }
+}
+