Refactor update for 6ball (#3017)
parent
def0ff48c0
commit
4b1f60a3f5
@ -1,28 +1,22 @@
|
|||||||
#include "6ball.h"
|
#include QMK_KEYBOARD_H
|
||||||
|
|
||||||
#define _MAIN 0
|
#define _MAIN 0
|
||||||
#define _FN 1
|
#define _FN 1
|
||||||
|
|
||||||
#define KC_ KC_TRNS
|
|
||||||
|
|
||||||
#define KC_CAPW LGUI(LSFT(KC_3)) // Capture whole screen
|
#define KC_CAPW LGUI(LSFT(KC_3)) // Capture whole screen
|
||||||
#define KC_CPYW LGUI(LSFT(LCTL(KC_3))) // Copy whole screen
|
#define KC_CPYW LGUI(LSFT(LCTL(KC_3))) // Copy whole screen
|
||||||
#define KC_CAPP LGUI(LSFT(KC_4)) // Capture portion of screen
|
#define KC_CAPP LGUI(LSFT(KC_4)) // Capture portion of screen
|
||||||
#define KC_CPYP LGUI(LSFT(LCTL(KC_4))) // Copy portion of screen
|
#define KC_CPYP LGUI(LSFT(LCTL(KC_4))) // Copy portion of screen
|
||||||
#define KC_X0 LT(_FN, KC_ESC)
|
#define KC_X0 LT(_FN, KC_ESC)
|
||||||
#define KC_RTOG RGB_TOG
|
|
||||||
#define KC_RMOD RGB_MOD
|
|
||||||
#define KC_RHUI RGB_HUI
|
|
||||||
#define KC_RHUD RGB_HUD
|
|
||||||
|
|
||||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
[_MAIN] = KC_KEYMAP(
|
[_MAIN] = LAYOUT(
|
||||||
F , X0 ,LCTL,
|
KC_F, KC_X0, KC_LCTL,
|
||||||
R , D , M
|
KC_R, KC_D, KC_M
|
||||||
),
|
),
|
||||||
|
|
||||||
[_FN] = KC_KEYMAP(
|
[_FN] = LAYOUT(
|
||||||
F , ,RHUI,
|
KC_F, KC_TRNS, RGB_HUI,
|
||||||
RTOG,RMOD,RHUD
|
RGB_TOG, RGB_MOD, RGB_HUD
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in new issue