2 Copyright 2018 Kenneth Aloysius
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #include QMK_KEYBOARD_H
18 #include "action_layer.h"
20 #include "../../backlight_staryu.h"
29 enum custom_keycodes {
37 bool process_record_user(uint16_t keycode, keyrecord_t *record) {
38 if (record->event.pressed) {
41 SEND_STRING("git add ."SS_TAP(X_ENTER));
44 SEND_STRING("git commit -m "SS_DOWN(X_LSHIFT)SS_TAP(X_QUOTE)SS_UP(X_LSHIFT));
47 SEND_STRING("git push"SS_TAP(X_ENTER));
50 SEND_STRING(SS_LGUI(SS_LSFT("M")));
53 SEND_STRING(SS_LGUI(SS_LSFT("D")));
61 const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
63 KC_ESC, TO(_LAYER1), \
68 GIT_ADD, GIT_COMMIT, GIT_PUSH \
71 RGB_MOD, TO(_LAYER3), \
72 RGB_TOG, RGB_HUD, RGB_HUI \
75 RGB_VAI, TO(_LAYER0), \
76 RGB_SAD, RGB_VAD, RGB_SAI \
80 const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) {
84 void matrix_init_user(void) {
85 for (int i=0; i<5; i++) {
90 void matrix_scan_user(void) {
93 void led_set_user(uint8_t usb_led) {