aboutsummaryrefslogtreecommitdiff
path: root/keyboards/sentraq/s60_x/keymaps/poker_bit/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/sentraq/s60_x/keymaps/poker_bit/keymap.c')
-rw-r--r--keyboards/sentraq/s60_x/keymaps/poker_bit/keymap.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/keyboards/sentraq/s60_x/keymaps/poker_bit/keymap.c b/keyboards/sentraq/s60_x/keymaps/poker_bit/keymap.c
index d66cc93c3..a4ab412ee 100644
--- a/keyboards/sentraq/s60_x/keymaps/poker_bit/keymap.c
+++ b/keyboards/sentraq/s60_x/keymaps/poker_bit/keymap.c
@@ -1,5 +1,9 @@
1#include QMK_KEYBOARD_H 1#include QMK_KEYBOARD_H
2 2
3#define KC_TG5 TG(5)
4#define KC_TG6 TG(6)
5#define KC_CSES C(S(KC_ESC))
6
3// Poker fix with toggle and bit operation 7// Poker fix with toggle and bit operation
4// Fn + Esc = ` 8// Fn + Esc = `
5// Fn + {left, down, up, right} = {home, pgdown, pgup, end} 9// Fn + {left, down, up, right} = {home, pgdown, pgup, end}
@@ -38,10 +42,10 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
38 */ 42 */
39 [4] = LAYOUT_kc( 43 [4] = LAYOUT_kc(
40 TRNS, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, TRNS, \ 44 TRNS, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, TRNS, TRNS, \
41 CAPS, FN2, UP, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, CALC, TRNS, HOME, INS, TRNS, \ 45 CAPS, TG6, UP, TRNS, TRNS, TRNS, TRNS, TRNS, TRNS, CALC, TRNS, HOME, INS, TRNS, \
42 TRNS, LEFT, DOWN, RGHT, TRNS, TRNS, PSCR, SLCK, PAUS, TRNS, FN4, END, TRNS, TRNS, \ 46 TRNS, LEFT, DOWN, RGHT, TRNS, TRNS, PSCR, SLCK, PAUS, TRNS, CSES, END, TRNS, TRNS, \
43 TRNS, TRNS, DEL, TRNS, WHOM, MUTE, VOLU, VOLD, TRNS, PGUP, PGDN, DEL, TRNS, TRNS, TRNS, \ 47 TRNS, TRNS, DEL, TRNS, WHOM, MUTE, VOLU, VOLD, TRNS, PGUP, PGDN, DEL, TRNS, TRNS, TRNS, \
44 TRNS, TRNS, TRNS, FN1, TRNS, TRNS, TRNS, TRNS), 48 TRNS, TRNS, TRNS, TG5, TRNS, TRNS, TRNS, TRNS),
45 /* 5: Poker with Arrow 49 /* 5: Poker with Arrow
46┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐ 50┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┐
47│ │ │ │ │ │ │ │ │ │ │ │ │ │▒▒▒▒▒│ │ 51│ │ │ │ │ │ │ │ │ │ │ │ │ │▒▒▒▒▒│ │
@@ -103,8 +107,5 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
103const uint16_t PROGMEM fn_actions[] = { 107const uint16_t PROGMEM fn_actions[] = {
104 /* Poker Layout */ 108 /* Poker Layout */
105 [0] = ACTION_LAYER_BIT_XOR(1, 0b0101, ON_BOTH), // Poker Fn(with fix for Esc) 109 [0] = ACTION_LAYER_BIT_XOR(1, 0b0101, ON_BOTH), // Poker Fn(with fix for Esc)
106 [1] = ACTION_LAYER_TOGGLE(5), // Poker Arrow toggle
107 [2] = ACTION_LAYER_TOGGLE(6), // Poker Esc toggle
108 [3] = ACTION_LAYER_BIT_XOR(1, 0b1101, ON_BOTH), // Poker Fn(with fix for Arrow) 110 [3] = ACTION_LAYER_BIT_XOR(1, 0b1101, ON_BOTH), // Poker Fn(with fix for Arrow)
109 [4] = ACTION_MODS_KEY(MOD_RCTL|MOD_RSFT, KC_ESC), // FN3 Task(RControl,RShift+Esc)
110}; 111};